{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/Users/tanzhuang/opt/anaconda3/lib/python3.9/site-packages/pandas/core/computation/expressions.py:21: UserWarning: Pandas requires version '2.8.4' or newer of 'numexpr' (version '2.8.3' currently installed).\n",
      "  from pandas.core.computation.check import NUMEXPR_INSTALLED\n",
      "/Users/tanzhuang/opt/anaconda3/lib/python3.9/site-packages/pandas/core/arrays/masked.py:60: UserWarning: Pandas requires version '1.3.6' or newer of 'bottleneck' (version '1.3.5' currently installed).\n",
      "  from pandas.core import (\n"
     ]
    }
   ],
   "source": [
    "import numpy as np # 数据处理最重要的模块\n",
    "import pandas as pd # 数据处理最重要的模块\n",
    "import scipy.stats as stats # 统计模块\n",
    "from datetime import datetime # 时间模块\n",
    "import scipy\n",
    "# import pymysql  # 导入数据库模块\n",
    "import statsmodels.api as sm"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>stkcd</th>\n",
       "      <th>stknme</th>\n",
       "      <th>conme</th>\n",
       "      <th>month</th>\n",
       "      <th>retrf</th>\n",
       "      <th>mktrf</th>\n",
       "      <th>smb</th>\n",
       "      <th>hml</th>\n",
       "      <th>umd</th>\n",
       "      <th>size</th>\n",
       "      <th>bm</th>\n",
       "      <th>return12</th>\n",
       "      <th>roa</th>\n",
       "      <th>lev</th>\n",
       "      <th>ppe</th>\n",
       "      <th>intang</th>\n",
       "      <th>numanalyst</th>\n",
       "      <th>instown</th>\n",
       "      <th>mv</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2013-07</td>\n",
       "      <td>9.0756</td>\n",
       "      <td>1.8833</td>\n",
       "      <td>5.1896</td>\n",
       "      <td>-0.1922</td>\n",
       "      <td>6.1829</td>\n",
       "      <td>23.10871</td>\n",
       "      <td>0.438860</td>\n",
       "      <td>13.374120</td>\n",
       "      <td>0.007949</td>\n",
       "      <td>0.430605</td>\n",
       "      <td>0.086185</td>\n",
       "      <td>0.031575</td>\n",
       "      <td>0</td>\n",
       "      <td>6.4646</td>\n",
       "      <td>11874173952</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2013-08</td>\n",
       "      <td>-5.1363</td>\n",
       "      <td>4.5833</td>\n",
       "      <td>5.9407</td>\n",
       "      <td>0.0976</td>\n",
       "      <td>-5.5041</td>\n",
       "      <td>23.10871</td>\n",
       "      <td>0.438860</td>\n",
       "      <td>13.374120</td>\n",
       "      <td>0.007949</td>\n",
       "      <td>0.430605</td>\n",
       "      <td>0.086185</td>\n",
       "      <td>0.031575</td>\n",
       "      <td>0</td>\n",
       "      <td>6.4646</td>\n",
       "      <td>11874173952</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2013-09</td>\n",
       "      <td>3.5840</td>\n",
       "      <td>3.3833</td>\n",
       "      <td>0.5848</td>\n",
       "      <td>2.8554</td>\n",
       "      <td>8.8693</td>\n",
       "      <td>23.10871</td>\n",
       "      <td>0.438860</td>\n",
       "      <td>13.374120</td>\n",
       "      <td>0.007949</td>\n",
       "      <td>0.430605</td>\n",
       "      <td>0.086185</td>\n",
       "      <td>0.031575</td>\n",
       "      <td>0</td>\n",
       "      <td>6.4646</td>\n",
       "      <td>11874173952</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2014-01</td>\n",
       "      <td>-1.0932</td>\n",
       "      <td>-3.6167</td>\n",
       "      <td>5.6921</td>\n",
       "      <td>1.1126</td>\n",
       "      <td>8.9357</td>\n",
       "      <td>23.28204</td>\n",
       "      <td>0.394303</td>\n",
       "      <td>46.591590</td>\n",
       "      <td>0.025973</td>\n",
       "      <td>0.432246</td>\n",
       "      <td>0.098660</td>\n",
       "      <td>0.029798</td>\n",
       "      <td>0</td>\n",
       "      <td>5.6741</td>\n",
       "      <td>11731143680</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2014-02</td>\n",
       "      <td>19.0704</td>\n",
       "      <td>0.9833</td>\n",
       "      <td>3.8899</td>\n",
       "      <td>0.6902</td>\n",
       "      <td>-1.8764</td>\n",
       "      <td>23.28204</td>\n",
       "      <td>0.394303</td>\n",
       "      <td>46.591590</td>\n",
       "      <td>0.025973</td>\n",
       "      <td>0.432246</td>\n",
       "      <td>0.098660</td>\n",
       "      <td>0.029798</td>\n",
       "      <td>0</td>\n",
       "      <td>5.6741</td>\n",
       "      <td>11731143680</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87427</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-08</td>\n",
       "      <td>-5.3373</td>\n",
       "      <td>-1.6917</td>\n",
       "      <td>-0.6838</td>\n",
       "      <td>-5.0887</td>\n",
       "      <td>4.6431</td>\n",
       "      <td>19.54512</td>\n",
       "      <td>5.124264</td>\n",
       "      <td>-4.492293</td>\n",
       "      <td>0.005443</td>\n",
       "      <td>0.598459</td>\n",
       "      <td>0.267594</td>\n",
       "      <td>0.025879</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>131675000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87428</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-09</td>\n",
       "      <td>11.0761</td>\n",
       "      <td>0.4083</td>\n",
       "      <td>0.4298</td>\n",
       "      <td>0.8208</td>\n",
       "      <td>-1.3250</td>\n",
       "      <td>19.54512</td>\n",
       "      <td>5.124264</td>\n",
       "      <td>-4.492293</td>\n",
       "      <td>0.005443</td>\n",
       "      <td>0.598459</td>\n",
       "      <td>0.267594</td>\n",
       "      <td>0.025879</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>131675000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87429</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-10</td>\n",
       "      <td>12.3759</td>\n",
       "      <td>1.3083</td>\n",
       "      <td>-2.5189</td>\n",
       "      <td>-0.0984</td>\n",
       "      <td>3.5783</td>\n",
       "      <td>19.41050</td>\n",
       "      <td>5.950344</td>\n",
       "      <td>-14.776860</td>\n",
       "      <td>0.010888</td>\n",
       "      <td>0.425125</td>\n",
       "      <td>0.269671</td>\n",
       "      <td>0.025286</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>127880000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87430</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-11</td>\n",
       "      <td>0.5954</td>\n",
       "      <td>-1.6917</td>\n",
       "      <td>-0.8970</td>\n",
       "      <td>0.1604</td>\n",
       "      <td>-0.1658</td>\n",
       "      <td>19.41050</td>\n",
       "      <td>5.950344</td>\n",
       "      <td>-14.776860</td>\n",
       "      <td>0.010888</td>\n",
       "      <td>0.425125</td>\n",
       "      <td>0.269671</td>\n",
       "      <td>0.025286</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>127880000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87431</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-12</td>\n",
       "      <td>7.2701</td>\n",
       "      <td>6.2083</td>\n",
       "      <td>1.2581</td>\n",
       "      <td>-0.9661</td>\n",
       "      <td>1.0033</td>\n",
       "      <td>19.41050</td>\n",
       "      <td>5.950344</td>\n",
       "      <td>-14.776860</td>\n",
       "      <td>0.010888</td>\n",
       "      <td>0.425125</td>\n",
       "      <td>0.269671</td>\n",
       "      <td>0.025286</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>127880000</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>87432 rows × 19 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "        stkcd stknme         conme    month    retrf   mktrf     smb     hml  \\\n",
       "0           9   中国宝安  中国宝安集团股份有限公司  2013-07   9.0756  1.8833  5.1896 -0.1922   \n",
       "1           9   中国宝安  中国宝安集团股份有限公司  2013-08  -5.1363  4.5833  5.9407  0.0976   \n",
       "2           9   中国宝安  中国宝安集团股份有限公司  2013-09   3.5840  3.3833  0.5848  2.8554   \n",
       "3           9   中国宝安  中国宝安集团股份有限公司  2014-01  -1.0932 -3.6167  5.6921  1.1126   \n",
       "4           9   中国宝安  中国宝安集团股份有限公司  2014-02  19.0704  0.9833  3.8899  0.6902   \n",
       "...       ...    ...           ...      ...      ...     ...     ...     ...   \n",
       "87427  900956   东贝B股  黄石东贝电器股份有限公司  2019-08  -5.3373 -1.6917 -0.6838 -5.0887   \n",
       "87428  900956   东贝B股  黄石东贝电器股份有限公司  2019-09  11.0761  0.4083  0.4298  0.8208   \n",
       "87429  900956   东贝B股  黄石东贝电器股份有限公司  2019-10  12.3759  1.3083 -2.5189 -0.0984   \n",
       "87430  900956   东贝B股  黄石东贝电器股份有限公司  2019-11   0.5954 -1.6917 -0.8970  0.1604   \n",
       "87431  900956   东贝B股  黄石东贝电器股份有限公司  2019-12   7.2701  6.2083  1.2581 -0.9661   \n",
       "\n",
       "          umd      size        bm   return12       roa       lev       ppe  \\\n",
       "0      6.1829  23.10871  0.438860  13.374120  0.007949  0.430605  0.086185   \n",
       "1     -5.5041  23.10871  0.438860  13.374120  0.007949  0.430605  0.086185   \n",
       "2      8.8693  23.10871  0.438860  13.374120  0.007949  0.430605  0.086185   \n",
       "3      8.9357  23.28204  0.394303  46.591590  0.025973  0.432246  0.098660   \n",
       "4     -1.8764  23.28204  0.394303  46.591590  0.025973  0.432246  0.098660   \n",
       "...       ...       ...       ...        ...       ...       ...       ...   \n",
       "87427  4.6431  19.54512  5.124264  -4.492293  0.005443  0.598459  0.267594   \n",
       "87428 -1.3250  19.54512  5.124264  -4.492293  0.005443  0.598459  0.267594   \n",
       "87429  3.5783  19.41050  5.950344 -14.776860  0.010888  0.425125  0.269671   \n",
       "87430 -0.1658  19.41050  5.950344 -14.776860  0.010888  0.425125  0.269671   \n",
       "87431  1.0033  19.41050  5.950344 -14.776860  0.010888  0.425125  0.269671   \n",
       "\n",
       "         intang  numanalyst  instown           mv  \n",
       "0      0.031575           0   6.4646  11874173952  \n",
       "1      0.031575           0   6.4646  11874173952  \n",
       "2      0.031575           0   6.4646  11874173952  \n",
       "3      0.029798           0   5.6741  11731143680  \n",
       "4      0.029798           0   5.6741  11731143680  \n",
       "...         ...         ...      ...          ...  \n",
       "87427  0.025879           0   0.0000    131675000  \n",
       "87428  0.025879           0   0.0000    131675000  \n",
       "87429  0.025286           0   0.0000    127880000  \n",
       "87430  0.025286           0   0.0000    127880000  \n",
       "87431  0.025286           0   0.0000    127880000  \n",
       "\n",
       "[87432 rows x 19 columns]"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data1 = pd.read_excel('Lecture 3 Stock returns.xlsx',sheet_name='data')\n",
    "data2 = pd.read_excel('Lecture 3 Online sales.xlsx')\n",
    "data1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "stkcd         0\n",
       "stknme        0\n",
       "conme         0\n",
       "month         0\n",
       "retrf         0\n",
       "mktrf         0\n",
       "smb           0\n",
       "hml           0\n",
       "umd           0\n",
       "size          0\n",
       "bm            0\n",
       "return12      0\n",
       "roa           0\n",
       "lev           0\n",
       "ppe           0\n",
       "intang        0\n",
       "numanalyst    0\n",
       "instown       0\n",
       "mv            0\n",
       "dtype: int64"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "missing1 = data1.isnull().sum()\n",
    "missing1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>one</th>\n",
       "      <th>two</th>\n",
       "      <th>three</th>\n",
       "      <th>four</th>\n",
       "      <th>five</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>month</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2012-04-01</th>\n",
       "      <td>21.327846</td>\n",
       "      <td>21.692256</td>\n",
       "      <td>22.047684</td>\n",
       "      <td>22.656796</td>\n",
       "      <td>28.08662</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-05-01</th>\n",
       "      <td>21.327846</td>\n",
       "      <td>21.692256</td>\n",
       "      <td>22.047684</td>\n",
       "      <td>22.656796</td>\n",
       "      <td>28.08662</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-01</th>\n",
       "      <td>21.327846</td>\n",
       "      <td>21.692256</td>\n",
       "      <td>22.047684</td>\n",
       "      <td>22.656796</td>\n",
       "      <td>28.08662</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-07-01</th>\n",
       "      <td>21.272112</td>\n",
       "      <td>21.647676</td>\n",
       "      <td>22.016332</td>\n",
       "      <td>22.622054</td>\n",
       "      <td>28.08148</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-08-01</th>\n",
       "      <td>21.272112</td>\n",
       "      <td>21.647676</td>\n",
       "      <td>22.016332</td>\n",
       "      <td>22.622054</td>\n",
       "      <td>28.08148</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-08-01</th>\n",
       "      <td>21.768566</td>\n",
       "      <td>22.169556</td>\n",
       "      <td>22.569668</td>\n",
       "      <td>23.168880</td>\n",
       "      <td>27.03046</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-09-01</th>\n",
       "      <td>21.768566</td>\n",
       "      <td>22.169556</td>\n",
       "      <td>22.569668</td>\n",
       "      <td>23.168880</td>\n",
       "      <td>27.03046</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-10-01</th>\n",
       "      <td>21.693058</td>\n",
       "      <td>22.067720</td>\n",
       "      <td>22.452406</td>\n",
       "      <td>23.050434</td>\n",
       "      <td>26.98228</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-11-01</th>\n",
       "      <td>21.693058</td>\n",
       "      <td>22.067720</td>\n",
       "      <td>22.452406</td>\n",
       "      <td>23.050434</td>\n",
       "      <td>26.98228</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-12-01</th>\n",
       "      <td>21.693058</td>\n",
       "      <td>22.067720</td>\n",
       "      <td>22.452406</td>\n",
       "      <td>23.050434</td>\n",
       "      <td>26.98228</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>93 rows × 5 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                  one        two      three       four      five\n",
       "month                                                           \n",
       "2012-04-01  21.327846  21.692256  22.047684  22.656796  28.08662\n",
       "2012-05-01  21.327846  21.692256  22.047684  22.656796  28.08662\n",
       "2012-06-01  21.327846  21.692256  22.047684  22.656796  28.08662\n",
       "2012-07-01  21.272112  21.647676  22.016332  22.622054  28.08148\n",
       "2012-08-01  21.272112  21.647676  22.016332  22.622054  28.08148\n",
       "...               ...        ...        ...        ...       ...\n",
       "2019-08-01  21.768566  22.169556  22.569668  23.168880  27.03046\n",
       "2019-09-01  21.768566  22.169556  22.569668  23.168880  27.03046\n",
       "2019-10-01  21.693058  22.067720  22.452406  23.050434  26.98228\n",
       "2019-11-01  21.693058  22.067720  22.452406  23.050434  26.98228\n",
       "2019-12-01  21.693058  22.067720  22.452406  23.050434  26.98228\n",
       "\n",
       "[93 rows x 5 columns]"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from pandas.tseries.offsets import MonthEnd\n",
    "data1['month'] = pd.to_datetime(data1['month'], format='%Y-%m')\n",
    "fenweishu = pd.DataFrame(\n",
    "    data1.groupby(['month'])['size'].quantile([0.2,0.4,0.6,0.8,1]))\n",
    "fenweishu = fenweishu.reset_index()\n",
    "fenweishu = fenweishu.pivot_table(index='month',columns='level_1',values='size')\n",
    "fenweishu.columns = ['one','two','three','four','five']\n",
    "fenweishu"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>stkcd</th>\n",
       "      <th>stknme</th>\n",
       "      <th>conme</th>\n",
       "      <th>month</th>\n",
       "      <th>retrf</th>\n",
       "      <th>mktrf</th>\n",
       "      <th>smb</th>\n",
       "      <th>hml</th>\n",
       "      <th>umd</th>\n",
       "      <th>size</th>\n",
       "      <th>...</th>\n",
       "      <th>ppe</th>\n",
       "      <th>intang</th>\n",
       "      <th>numanalyst</th>\n",
       "      <th>instown</th>\n",
       "      <th>mv</th>\n",
       "      <th>one</th>\n",
       "      <th>two</th>\n",
       "      <th>three</th>\n",
       "      <th>four</th>\n",
       "      <th>five</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2013-07-01</td>\n",
       "      <td>9.0756</td>\n",
       "      <td>1.8833</td>\n",
       "      <td>5.1896</td>\n",
       "      <td>-0.1922</td>\n",
       "      <td>6.1829</td>\n",
       "      <td>23.10871</td>\n",
       "      <td>...</td>\n",
       "      <td>0.086185</td>\n",
       "      <td>0.031575</td>\n",
       "      <td>0</td>\n",
       "      <td>6.4646</td>\n",
       "      <td>11874173952</td>\n",
       "      <td>21.245510</td>\n",
       "      <td>21.627650</td>\n",
       "      <td>22.049190</td>\n",
       "      <td>22.614570</td>\n",
       "      <td>27.97255</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2013-08-01</td>\n",
       "      <td>-5.1363</td>\n",
       "      <td>4.5833</td>\n",
       "      <td>5.9407</td>\n",
       "      <td>0.0976</td>\n",
       "      <td>-5.5041</td>\n",
       "      <td>23.10871</td>\n",
       "      <td>...</td>\n",
       "      <td>0.086185</td>\n",
       "      <td>0.031575</td>\n",
       "      <td>0</td>\n",
       "      <td>6.4646</td>\n",
       "      <td>11874173952</td>\n",
       "      <td>21.245510</td>\n",
       "      <td>21.627650</td>\n",
       "      <td>22.049190</td>\n",
       "      <td>22.614570</td>\n",
       "      <td>27.97255</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2013-09-01</td>\n",
       "      <td>3.5840</td>\n",
       "      <td>3.3833</td>\n",
       "      <td>0.5848</td>\n",
       "      <td>2.8554</td>\n",
       "      <td>8.8693</td>\n",
       "      <td>23.10871</td>\n",
       "      <td>...</td>\n",
       "      <td>0.086185</td>\n",
       "      <td>0.031575</td>\n",
       "      <td>0</td>\n",
       "      <td>6.4646</td>\n",
       "      <td>11874173952</td>\n",
       "      <td>21.245510</td>\n",
       "      <td>21.627650</td>\n",
       "      <td>22.049190</td>\n",
       "      <td>22.614570</td>\n",
       "      <td>27.97255</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2014-01-01</td>\n",
       "      <td>-1.0932</td>\n",
       "      <td>-3.6167</td>\n",
       "      <td>5.6921</td>\n",
       "      <td>1.1126</td>\n",
       "      <td>8.9357</td>\n",
       "      <td>23.28204</td>\n",
       "      <td>...</td>\n",
       "      <td>0.098660</td>\n",
       "      <td>0.029798</td>\n",
       "      <td>0</td>\n",
       "      <td>5.6741</td>\n",
       "      <td>11731143680</td>\n",
       "      <td>21.386180</td>\n",
       "      <td>21.831670</td>\n",
       "      <td>22.237490</td>\n",
       "      <td>22.795440</td>\n",
       "      <td>27.86962</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2014-02-01</td>\n",
       "      <td>19.0704</td>\n",
       "      <td>0.9833</td>\n",
       "      <td>3.8899</td>\n",
       "      <td>0.6902</td>\n",
       "      <td>-1.8764</td>\n",
       "      <td>23.28204</td>\n",
       "      <td>...</td>\n",
       "      <td>0.098660</td>\n",
       "      <td>0.029798</td>\n",
       "      <td>0</td>\n",
       "      <td>5.6741</td>\n",
       "      <td>11731143680</td>\n",
       "      <td>21.386180</td>\n",
       "      <td>21.831670</td>\n",
       "      <td>22.237490</td>\n",
       "      <td>22.795440</td>\n",
       "      <td>27.86962</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87427</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-08-01</td>\n",
       "      <td>-5.3373</td>\n",
       "      <td>-1.6917</td>\n",
       "      <td>-0.6838</td>\n",
       "      <td>-5.0887</td>\n",
       "      <td>4.6431</td>\n",
       "      <td>19.54512</td>\n",
       "      <td>...</td>\n",
       "      <td>0.267594</td>\n",
       "      <td>0.025879</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>131675000</td>\n",
       "      <td>21.768566</td>\n",
       "      <td>22.169556</td>\n",
       "      <td>22.569668</td>\n",
       "      <td>23.168880</td>\n",
       "      <td>27.03046</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87428</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-09-01</td>\n",
       "      <td>11.0761</td>\n",
       "      <td>0.4083</td>\n",
       "      <td>0.4298</td>\n",
       "      <td>0.8208</td>\n",
       "      <td>-1.3250</td>\n",
       "      <td>19.54512</td>\n",
       "      <td>...</td>\n",
       "      <td>0.267594</td>\n",
       "      <td>0.025879</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>131675000</td>\n",
       "      <td>21.768566</td>\n",
       "      <td>22.169556</td>\n",
       "      <td>22.569668</td>\n",
       "      <td>23.168880</td>\n",
       "      <td>27.03046</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87429</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-10-01</td>\n",
       "      <td>12.3759</td>\n",
       "      <td>1.3083</td>\n",
       "      <td>-2.5189</td>\n",
       "      <td>-0.0984</td>\n",
       "      <td>3.5783</td>\n",
       "      <td>19.41050</td>\n",
       "      <td>...</td>\n",
       "      <td>0.269671</td>\n",
       "      <td>0.025286</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>127880000</td>\n",
       "      <td>21.693058</td>\n",
       "      <td>22.067720</td>\n",
       "      <td>22.452406</td>\n",
       "      <td>23.050434</td>\n",
       "      <td>26.98228</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87430</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-11-01</td>\n",
       "      <td>0.5954</td>\n",
       "      <td>-1.6917</td>\n",
       "      <td>-0.8970</td>\n",
       "      <td>0.1604</td>\n",
       "      <td>-0.1658</td>\n",
       "      <td>19.41050</td>\n",
       "      <td>...</td>\n",
       "      <td>0.269671</td>\n",
       "      <td>0.025286</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>127880000</td>\n",
       "      <td>21.693058</td>\n",
       "      <td>22.067720</td>\n",
       "      <td>22.452406</td>\n",
       "      <td>23.050434</td>\n",
       "      <td>26.98228</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87431</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-12-01</td>\n",
       "      <td>7.2701</td>\n",
       "      <td>6.2083</td>\n",
       "      <td>1.2581</td>\n",
       "      <td>-0.9661</td>\n",
       "      <td>1.0033</td>\n",
       "      <td>19.41050</td>\n",
       "      <td>...</td>\n",
       "      <td>0.269671</td>\n",
       "      <td>0.025286</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>127880000</td>\n",
       "      <td>21.693058</td>\n",
       "      <td>22.067720</td>\n",
       "      <td>22.452406</td>\n",
       "      <td>23.050434</td>\n",
       "      <td>26.98228</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>87432 rows × 24 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "        stkcd stknme         conme      month    retrf   mktrf     smb  \\\n",
       "0           9   中国宝安  中国宝安集团股份有限公司 2013-07-01   9.0756  1.8833  5.1896   \n",
       "1           9   中国宝安  中国宝安集团股份有限公司 2013-08-01  -5.1363  4.5833  5.9407   \n",
       "2           9   中国宝安  中国宝安集团股份有限公司 2013-09-01   3.5840  3.3833  0.5848   \n",
       "3           9   中国宝安  中国宝安集团股份有限公司 2014-01-01  -1.0932 -3.6167  5.6921   \n",
       "4           9   中国宝安  中国宝安集团股份有限公司 2014-02-01  19.0704  0.9833  3.8899   \n",
       "...       ...    ...           ...        ...      ...     ...     ...   \n",
       "87427  900956   东贝B股  黄石东贝电器股份有限公司 2019-08-01  -5.3373 -1.6917 -0.6838   \n",
       "87428  900956   东贝B股  黄石东贝电器股份有限公司 2019-09-01  11.0761  0.4083  0.4298   \n",
       "87429  900956   东贝B股  黄石东贝电器股份有限公司 2019-10-01  12.3759  1.3083 -2.5189   \n",
       "87430  900956   东贝B股  黄石东贝电器股份有限公司 2019-11-01   0.5954 -1.6917 -0.8970   \n",
       "87431  900956   东贝B股  黄石东贝电器股份有限公司 2019-12-01   7.2701  6.2083  1.2581   \n",
       "\n",
       "          hml     umd      size  ...       ppe    intang  numanalyst  instown  \\\n",
       "0     -0.1922  6.1829  23.10871  ...  0.086185  0.031575           0   6.4646   \n",
       "1      0.0976 -5.5041  23.10871  ...  0.086185  0.031575           0   6.4646   \n",
       "2      2.8554  8.8693  23.10871  ...  0.086185  0.031575           0   6.4646   \n",
       "3      1.1126  8.9357  23.28204  ...  0.098660  0.029798           0   5.6741   \n",
       "4      0.6902 -1.8764  23.28204  ...  0.098660  0.029798           0   5.6741   \n",
       "...       ...     ...       ...  ...       ...       ...         ...      ...   \n",
       "87427 -5.0887  4.6431  19.54512  ...  0.267594  0.025879           0   0.0000   \n",
       "87428  0.8208 -1.3250  19.54512  ...  0.267594  0.025879           0   0.0000   \n",
       "87429 -0.0984  3.5783  19.41050  ...  0.269671  0.025286           0   0.0000   \n",
       "87430  0.1604 -0.1658  19.41050  ...  0.269671  0.025286           0   0.0000   \n",
       "87431 -0.9661  1.0033  19.41050  ...  0.269671  0.025286           0   0.0000   \n",
       "\n",
       "                mv        one        two      three       four      five  \n",
       "0      11874173952  21.245510  21.627650  22.049190  22.614570  27.97255  \n",
       "1      11874173952  21.245510  21.627650  22.049190  22.614570  27.97255  \n",
       "2      11874173952  21.245510  21.627650  22.049190  22.614570  27.97255  \n",
       "3      11731143680  21.386180  21.831670  22.237490  22.795440  27.86962  \n",
       "4      11731143680  21.386180  21.831670  22.237490  22.795440  27.86962  \n",
       "...            ...        ...        ...        ...        ...       ...  \n",
       "87427    131675000  21.768566  22.169556  22.569668  23.168880  27.03046  \n",
       "87428    131675000  21.768566  22.169556  22.569668  23.168880  27.03046  \n",
       "87429    127880000  21.693058  22.067720  22.452406  23.050434  26.98228  \n",
       "87430    127880000  21.693058  22.067720  22.452406  23.050434  26.98228  \n",
       "87431    127880000  21.693058  22.067720  22.452406  23.050434  26.98228  \n",
       "\n",
       "[87432 rows x 24 columns]"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "portfolio = pd.merge(data1,fenweishu,on='month')\n",
    "portfolio"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>stkcd</th>\n",
       "      <th>stknme</th>\n",
       "      <th>conme</th>\n",
       "      <th>month</th>\n",
       "      <th>retrf</th>\n",
       "      <th>mktrf</th>\n",
       "      <th>smb</th>\n",
       "      <th>hml</th>\n",
       "      <th>umd</th>\n",
       "      <th>size</th>\n",
       "      <th>...</th>\n",
       "      <th>intang</th>\n",
       "      <th>numanalyst</th>\n",
       "      <th>instown</th>\n",
       "      <th>mv</th>\n",
       "      <th>one</th>\n",
       "      <th>two</th>\n",
       "      <th>three</th>\n",
       "      <th>four</th>\n",
       "      <th>five</th>\n",
       "      <th>sort</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2013-07-01</td>\n",
       "      <td>9.0756</td>\n",
       "      <td>1.8833</td>\n",
       "      <td>5.1896</td>\n",
       "      <td>-0.1922</td>\n",
       "      <td>6.1829</td>\n",
       "      <td>23.10871</td>\n",
       "      <td>...</td>\n",
       "      <td>0.031575</td>\n",
       "      <td>0</td>\n",
       "      <td>6.4646</td>\n",
       "      <td>11874173952</td>\n",
       "      <td>21.245510</td>\n",
       "      <td>21.627650</td>\n",
       "      <td>22.049190</td>\n",
       "      <td>22.614570</td>\n",
       "      <td>27.97255</td>\n",
       "      <td>P5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2013-08-01</td>\n",
       "      <td>-5.1363</td>\n",
       "      <td>4.5833</td>\n",
       "      <td>5.9407</td>\n",
       "      <td>0.0976</td>\n",
       "      <td>-5.5041</td>\n",
       "      <td>23.10871</td>\n",
       "      <td>...</td>\n",
       "      <td>0.031575</td>\n",
       "      <td>0</td>\n",
       "      <td>6.4646</td>\n",
       "      <td>11874173952</td>\n",
       "      <td>21.245510</td>\n",
       "      <td>21.627650</td>\n",
       "      <td>22.049190</td>\n",
       "      <td>22.614570</td>\n",
       "      <td>27.97255</td>\n",
       "      <td>P5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2013-09-01</td>\n",
       "      <td>3.5840</td>\n",
       "      <td>3.3833</td>\n",
       "      <td>0.5848</td>\n",
       "      <td>2.8554</td>\n",
       "      <td>8.8693</td>\n",
       "      <td>23.10871</td>\n",
       "      <td>...</td>\n",
       "      <td>0.031575</td>\n",
       "      <td>0</td>\n",
       "      <td>6.4646</td>\n",
       "      <td>11874173952</td>\n",
       "      <td>21.245510</td>\n",
       "      <td>21.627650</td>\n",
       "      <td>22.049190</td>\n",
       "      <td>22.614570</td>\n",
       "      <td>27.97255</td>\n",
       "      <td>P5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2014-01-01</td>\n",
       "      <td>-1.0932</td>\n",
       "      <td>-3.6167</td>\n",
       "      <td>5.6921</td>\n",
       "      <td>1.1126</td>\n",
       "      <td>8.9357</td>\n",
       "      <td>23.28204</td>\n",
       "      <td>...</td>\n",
       "      <td>0.029798</td>\n",
       "      <td>0</td>\n",
       "      <td>5.6741</td>\n",
       "      <td>11731143680</td>\n",
       "      <td>21.386180</td>\n",
       "      <td>21.831670</td>\n",
       "      <td>22.237490</td>\n",
       "      <td>22.795440</td>\n",
       "      <td>27.86962</td>\n",
       "      <td>P5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2014-02-01</td>\n",
       "      <td>19.0704</td>\n",
       "      <td>0.9833</td>\n",
       "      <td>3.8899</td>\n",
       "      <td>0.6902</td>\n",
       "      <td>-1.8764</td>\n",
       "      <td>23.28204</td>\n",
       "      <td>...</td>\n",
       "      <td>0.029798</td>\n",
       "      <td>0</td>\n",
       "      <td>5.6741</td>\n",
       "      <td>11731143680</td>\n",
       "      <td>21.386180</td>\n",
       "      <td>21.831670</td>\n",
       "      <td>22.237490</td>\n",
       "      <td>22.795440</td>\n",
       "      <td>27.86962</td>\n",
       "      <td>P5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87427</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-08-01</td>\n",
       "      <td>-5.3373</td>\n",
       "      <td>-1.6917</td>\n",
       "      <td>-0.6838</td>\n",
       "      <td>-5.0887</td>\n",
       "      <td>4.6431</td>\n",
       "      <td>19.54512</td>\n",
       "      <td>...</td>\n",
       "      <td>0.025879</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>131675000</td>\n",
       "      <td>21.768566</td>\n",
       "      <td>22.169556</td>\n",
       "      <td>22.569668</td>\n",
       "      <td>23.168880</td>\n",
       "      <td>27.03046</td>\n",
       "      <td>P1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87428</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-09-01</td>\n",
       "      <td>11.0761</td>\n",
       "      <td>0.4083</td>\n",
       "      <td>0.4298</td>\n",
       "      <td>0.8208</td>\n",
       "      <td>-1.3250</td>\n",
       "      <td>19.54512</td>\n",
       "      <td>...</td>\n",
       "      <td>0.025879</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>131675000</td>\n",
       "      <td>21.768566</td>\n",
       "      <td>22.169556</td>\n",
       "      <td>22.569668</td>\n",
       "      <td>23.168880</td>\n",
       "      <td>27.03046</td>\n",
       "      <td>P1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87429</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-10-01</td>\n",
       "      <td>12.3759</td>\n",
       "      <td>1.3083</td>\n",
       "      <td>-2.5189</td>\n",
       "      <td>-0.0984</td>\n",
       "      <td>3.5783</td>\n",
       "      <td>19.41050</td>\n",
       "      <td>...</td>\n",
       "      <td>0.025286</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>127880000</td>\n",
       "      <td>21.693058</td>\n",
       "      <td>22.067720</td>\n",
       "      <td>22.452406</td>\n",
       "      <td>23.050434</td>\n",
       "      <td>26.98228</td>\n",
       "      <td>P1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87430</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-11-01</td>\n",
       "      <td>0.5954</td>\n",
       "      <td>-1.6917</td>\n",
       "      <td>-0.8970</td>\n",
       "      <td>0.1604</td>\n",
       "      <td>-0.1658</td>\n",
       "      <td>19.41050</td>\n",
       "      <td>...</td>\n",
       "      <td>0.025286</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>127880000</td>\n",
       "      <td>21.693058</td>\n",
       "      <td>22.067720</td>\n",
       "      <td>22.452406</td>\n",
       "      <td>23.050434</td>\n",
       "      <td>26.98228</td>\n",
       "      <td>P1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87431</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-12-01</td>\n",
       "      <td>7.2701</td>\n",
       "      <td>6.2083</td>\n",
       "      <td>1.2581</td>\n",
       "      <td>-0.9661</td>\n",
       "      <td>1.0033</td>\n",
       "      <td>19.41050</td>\n",
       "      <td>...</td>\n",
       "      <td>0.025286</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>127880000</td>\n",
       "      <td>21.693058</td>\n",
       "      <td>22.067720</td>\n",
       "      <td>22.452406</td>\n",
       "      <td>23.050434</td>\n",
       "      <td>26.98228</td>\n",
       "      <td>P1</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>87432 rows × 25 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "        stkcd stknme         conme      month    retrf   mktrf     smb  \\\n",
       "0           9   中国宝安  中国宝安集团股份有限公司 2013-07-01   9.0756  1.8833  5.1896   \n",
       "1           9   中国宝安  中国宝安集团股份有限公司 2013-08-01  -5.1363  4.5833  5.9407   \n",
       "2           9   中国宝安  中国宝安集团股份有限公司 2013-09-01   3.5840  3.3833  0.5848   \n",
       "3           9   中国宝安  中国宝安集团股份有限公司 2014-01-01  -1.0932 -3.6167  5.6921   \n",
       "4           9   中国宝安  中国宝安集团股份有限公司 2014-02-01  19.0704  0.9833  3.8899   \n",
       "...       ...    ...           ...        ...      ...     ...     ...   \n",
       "87427  900956   东贝B股  黄石东贝电器股份有限公司 2019-08-01  -5.3373 -1.6917 -0.6838   \n",
       "87428  900956   东贝B股  黄石东贝电器股份有限公司 2019-09-01  11.0761  0.4083  0.4298   \n",
       "87429  900956   东贝B股  黄石东贝电器股份有限公司 2019-10-01  12.3759  1.3083 -2.5189   \n",
       "87430  900956   东贝B股  黄石东贝电器股份有限公司 2019-11-01   0.5954 -1.6917 -0.8970   \n",
       "87431  900956   东贝B股  黄石东贝电器股份有限公司 2019-12-01   7.2701  6.2083  1.2581   \n",
       "\n",
       "          hml     umd      size  ...    intang  numanalyst  instown  \\\n",
       "0     -0.1922  6.1829  23.10871  ...  0.031575           0   6.4646   \n",
       "1      0.0976 -5.5041  23.10871  ...  0.031575           0   6.4646   \n",
       "2      2.8554  8.8693  23.10871  ...  0.031575           0   6.4646   \n",
       "3      1.1126  8.9357  23.28204  ...  0.029798           0   5.6741   \n",
       "4      0.6902 -1.8764  23.28204  ...  0.029798           0   5.6741   \n",
       "...       ...     ...       ...  ...       ...         ...      ...   \n",
       "87427 -5.0887  4.6431  19.54512  ...  0.025879           0   0.0000   \n",
       "87428  0.8208 -1.3250  19.54512  ...  0.025879           0   0.0000   \n",
       "87429 -0.0984  3.5783  19.41050  ...  0.025286           0   0.0000   \n",
       "87430  0.1604 -0.1658  19.41050  ...  0.025286           0   0.0000   \n",
       "87431 -0.9661  1.0033  19.41050  ...  0.025286           0   0.0000   \n",
       "\n",
       "                mv        one        two      three       four      five  sort  \n",
       "0      11874173952  21.245510  21.627650  22.049190  22.614570  27.97255    P5  \n",
       "1      11874173952  21.245510  21.627650  22.049190  22.614570  27.97255    P5  \n",
       "2      11874173952  21.245510  21.627650  22.049190  22.614570  27.97255    P5  \n",
       "3      11731143680  21.386180  21.831670  22.237490  22.795440  27.86962    P5  \n",
       "4      11731143680  21.386180  21.831670  22.237490  22.795440  27.86962    P5  \n",
       "...            ...        ...        ...        ...        ...       ...   ...  \n",
       "87427    131675000  21.768566  22.169556  22.569668  23.168880  27.03046    P1  \n",
       "87428    131675000  21.768566  22.169556  22.569668  23.168880  27.03046    P1  \n",
       "87429    127880000  21.693058  22.067720  22.452406  23.050434  26.98228    P1  \n",
       "87430    127880000  21.693058  22.067720  22.452406  23.050434  26.98228    P1  \n",
       "87431    127880000  21.693058  22.067720  22.452406  23.050434  26.98228    P1  \n",
       "\n",
       "[87432 rows x 25 columns]"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "portfolio['sort'] = np.where(\n",
    "    portfolio['size'] <= portfolio['one'], 'P1',\n",
    "    np.where(\n",
    "        portfolio['size'] <= portfolio['two'], 'P2',\n",
    "        np.where(\n",
    "            portfolio['size'] <= portfolio['three'], 'P3',\n",
    "            np.where(\n",
    "                portfolio['size'] <= portfolio['four'], 'P4',\n",
    "                'P5'))))\n",
    "portfolio"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>month</th>\n",
       "      <th>sort</th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th rowspan=\"5\" valign=\"top\">2012-04-01</th>\n",
       "      <th>P1</th>\n",
       "      <td>3.390743</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>P2</th>\n",
       "      <td>7.578612</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>P3</th>\n",
       "      <td>8.365180</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>P4</th>\n",
       "      <td>4.711109</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>P5</th>\n",
       "      <td>2.665591</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"5\" valign=\"top\">2019-12-01</th>\n",
       "      <th>P1</th>\n",
       "      <td>9.163620</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>P2</th>\n",
       "      <td>8.423394</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>P3</th>\n",
       "      <td>8.953766</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>P4</th>\n",
       "      <td>8.949106</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>P5</th>\n",
       "      <td>7.291037</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>465 rows × 1 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                        0\n",
       "month      sort          \n",
       "2012-04-01 P1    3.390743\n",
       "           P2    7.578612\n",
       "           P3    8.365180\n",
       "           P4    4.711109\n",
       "           P5    2.665591\n",
       "...                   ...\n",
       "2019-12-01 P1    9.163620\n",
       "           P2    8.423394\n",
       "           P3    8.953766\n",
       "           P4    8.949106\n",
       "           P5    7.291037\n",
       "\n",
       "[465 rows x 1 columns]"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "portfolio_size =  pd.DataFrame(\n",
    "    portfolio.groupby(['month','sort']).apply(lambda x: np.average(x['retrf'],weights = x['mv']),include_groups=False))\n",
    "portfolio_size"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>month</th>\n",
       "      <th>sort</th>\n",
       "      <th>r</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2012-04-01</td>\n",
       "      <td>P1</td>\n",
       "      <td>3.390743</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2012-04-01</td>\n",
       "      <td>P2</td>\n",
       "      <td>7.578612</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2012-04-01</td>\n",
       "      <td>P3</td>\n",
       "      <td>8.365180</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2012-04-01</td>\n",
       "      <td>P4</td>\n",
       "      <td>4.711109</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2012-04-01</td>\n",
       "      <td>P5</td>\n",
       "      <td>2.665591</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>460</th>\n",
       "      <td>2019-12-01</td>\n",
       "      <td>P1</td>\n",
       "      <td>9.163620</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>461</th>\n",
       "      <td>2019-12-01</td>\n",
       "      <td>P2</td>\n",
       "      <td>8.423394</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>462</th>\n",
       "      <td>2019-12-01</td>\n",
       "      <td>P3</td>\n",
       "      <td>8.953766</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>463</th>\n",
       "      <td>2019-12-01</td>\n",
       "      <td>P4</td>\n",
       "      <td>8.949106</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>464</th>\n",
       "      <td>2019-12-01</td>\n",
       "      <td>P5</td>\n",
       "      <td>7.291037</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>465 rows × 3 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "         month sort         r\n",
       "0   2012-04-01   P1  3.390743\n",
       "1   2012-04-01   P2  7.578612\n",
       "2   2012-04-01   P3  8.365180\n",
       "3   2012-04-01   P4  4.711109\n",
       "4   2012-04-01   P5  2.665591\n",
       "..         ...  ...       ...\n",
       "460 2019-12-01   P1  9.163620\n",
       "461 2019-12-01   P2  8.423394\n",
       "462 2019-12-01   P3  8.953766\n",
       "463 2019-12-01   P4  8.949106\n",
       "464 2019-12-01   P5  7.291037\n",
       "\n",
       "[465 rows x 3 columns]"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "portfolio_size = portfolio_size.reset_index()\n",
    "portfolio_size.columns = ['month', 'sort', 'r']\n",
    "portfolio_size['month'] = portfolio_size['month']\n",
    "portfolio_size"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th>sort</th>\n",
       "      <th>P1</th>\n",
       "      <th>P2</th>\n",
       "      <th>P3</th>\n",
       "      <th>P4</th>\n",
       "      <th>P5</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>month</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2012-04-01</th>\n",
       "      <td>3.390743</td>\n",
       "      <td>7.578612</td>\n",
       "      <td>8.365180</td>\n",
       "      <td>4.711109</td>\n",
       "      <td>2.665591</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-05-01</th>\n",
       "      <td>0.917414</td>\n",
       "      <td>1.436039</td>\n",
       "      <td>2.839390</td>\n",
       "      <td>2.983043</td>\n",
       "      <td>-2.131182</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-01</th>\n",
       "      <td>-7.592652</td>\n",
       "      <td>-6.989411</td>\n",
       "      <td>-7.563955</td>\n",
       "      <td>-7.222973</td>\n",
       "      <td>-4.217237</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-07-01</th>\n",
       "      <td>-12.370481</td>\n",
       "      <td>-9.849247</td>\n",
       "      <td>-11.757435</td>\n",
       "      <td>-10.585902</td>\n",
       "      <td>-5.003149</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-08-01</th>\n",
       "      <td>5.214389</td>\n",
       "      <td>4.760477</td>\n",
       "      <td>3.292609</td>\n",
       "      <td>2.460502</td>\n",
       "      <td>-2.062398</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-08-01</th>\n",
       "      <td>-2.553899</td>\n",
       "      <td>-1.192578</td>\n",
       "      <td>-0.988018</td>\n",
       "      <td>-1.032769</td>\n",
       "      <td>0.571412</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-09-01</th>\n",
       "      <td>2.769125</td>\n",
       "      <td>1.398011</td>\n",
       "      <td>1.607618</td>\n",
       "      <td>1.568557</td>\n",
       "      <td>0.698124</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-10-01</th>\n",
       "      <td>0.254731</td>\n",
       "      <td>-0.063136</td>\n",
       "      <td>-0.493057</td>\n",
       "      <td>-0.584703</td>\n",
       "      <td>0.195569</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-11-01</th>\n",
       "      <td>-2.396241</td>\n",
       "      <td>-2.696720</td>\n",
       "      <td>-3.310721</td>\n",
       "      <td>-2.350089</td>\n",
       "      <td>0.147057</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-12-01</th>\n",
       "      <td>9.163620</td>\n",
       "      <td>8.423394</td>\n",
       "      <td>8.953766</td>\n",
       "      <td>8.949106</td>\n",
       "      <td>7.291037</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>93 rows × 5 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "sort               P1        P2         P3         P4        P5\n",
       "month                                                          \n",
       "2012-04-01   3.390743  7.578612   8.365180   4.711109  2.665591\n",
       "2012-05-01   0.917414  1.436039   2.839390   2.983043 -2.131182\n",
       "2012-06-01  -7.592652 -6.989411  -7.563955  -7.222973 -4.217237\n",
       "2012-07-01 -12.370481 -9.849247 -11.757435 -10.585902 -5.003149\n",
       "2012-08-01   5.214389  4.760477   3.292609   2.460502 -2.062398\n",
       "...               ...       ...        ...        ...       ...\n",
       "2019-08-01  -2.553899 -1.192578  -0.988018  -1.032769  0.571412\n",
       "2019-09-01   2.769125  1.398011   1.607618   1.568557  0.698124\n",
       "2019-10-01   0.254731 -0.063136  -0.493057  -0.584703  0.195569\n",
       "2019-11-01  -2.396241 -2.696720  -3.310721  -2.350089  0.147057\n",
       "2019-12-01   9.163620  8.423394   8.953766   8.949106  7.291037\n",
       "\n",
       "[93 rows x 5 columns]"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "portfolio_size = portfolio_size.pivot_table(index='month',columns='sort',values='r')\n",
    "portfolio_size"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "问题一结果："
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th>sort</th>\n",
       "      <th>P1</th>\n",
       "      <th>P2</th>\n",
       "      <th>P3</th>\n",
       "      <th>P4</th>\n",
       "      <th>P5</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>month</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2012-06-30</th>\n",
       "      <td>-0.035829</td>\n",
       "      <td>0.014964</td>\n",
       "      <td>0.030127</td>\n",
       "      <td>0.000458</td>\n",
       "      <td>-0.037598</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-09-30</th>\n",
       "      <td>-0.053177</td>\n",
       "      <td>-0.064571</td>\n",
       "      <td>-0.089903</td>\n",
       "      <td>-0.080667</td>\n",
       "      <td>-0.054720</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-31</th>\n",
       "      <td>0.028016</td>\n",
       "      <td>-0.003315</td>\n",
       "      <td>-0.003321</td>\n",
       "      <td>-0.010244</td>\n",
       "      <td>0.049200</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2013-03-31</th>\n",
       "      <td>0.092012</td>\n",
       "      <td>0.093649</td>\n",
       "      <td>0.095664</td>\n",
       "      <td>0.070386</td>\n",
       "      <td>0.002877</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2013-06-30</th>\n",
       "      <td>-0.044113</td>\n",
       "      <td>-0.030772</td>\n",
       "      <td>-0.042116</td>\n",
       "      <td>-0.044958</td>\n",
       "      <td>-0.117705</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2013-09-30</th>\n",
       "      <td>0.304232</td>\n",
       "      <td>0.315922</td>\n",
       "      <td>0.234699</td>\n",
       "      <td>0.238680</td>\n",
       "      <td>0.093067</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2013-12-31</th>\n",
       "      <td>0.087619</td>\n",
       "      <td>0.030058</td>\n",
       "      <td>0.020350</td>\n",
       "      <td>0.021501</td>\n",
       "      <td>-0.030306</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2014-03-31</th>\n",
       "      <td>0.048647</td>\n",
       "      <td>0.065401</td>\n",
       "      <td>0.064303</td>\n",
       "      <td>0.010761</td>\n",
       "      <td>-0.033490</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2014-06-30</th>\n",
       "      <td>0.149426</td>\n",
       "      <td>0.093611</td>\n",
       "      <td>0.076307</td>\n",
       "      <td>0.038967</td>\n",
       "      <td>0.016499</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2014-09-30</th>\n",
       "      <td>0.388683</td>\n",
       "      <td>0.305110</td>\n",
       "      <td>0.257455</td>\n",
       "      <td>0.224166</td>\n",
       "      <td>0.100102</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2014-12-31</th>\n",
       "      <td>-0.095141</td>\n",
       "      <td>-0.021213</td>\n",
       "      <td>-0.012894</td>\n",
       "      <td>0.006360</td>\n",
       "      <td>0.215952</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-03-31</th>\n",
       "      <td>0.519555</td>\n",
       "      <td>0.463932</td>\n",
       "      <td>0.510442</td>\n",
       "      <td>0.413932</td>\n",
       "      <td>0.192381</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-06-30</th>\n",
       "      <td>0.369303</td>\n",
       "      <td>0.299063</td>\n",
       "      <td>0.256728</td>\n",
       "      <td>0.246567</td>\n",
       "      <td>0.128564</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-09-30</th>\n",
       "      <td>-0.327592</td>\n",
       "      <td>-0.359598</td>\n",
       "      <td>-0.321888</td>\n",
       "      <td>-0.325113</td>\n",
       "      <td>-0.301595</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-12-31</th>\n",
       "      <td>0.664669</td>\n",
       "      <td>0.543853</td>\n",
       "      <td>0.469118</td>\n",
       "      <td>0.381411</td>\n",
       "      <td>0.129069</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-03-31</th>\n",
       "      <td>-0.174685</td>\n",
       "      <td>-0.194861</td>\n",
       "      <td>-0.212325</td>\n",
       "      <td>-0.216477</td>\n",
       "      <td>-0.144801</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-06-30</th>\n",
       "      <td>0.047155</td>\n",
       "      <td>0.078318</td>\n",
       "      <td>0.089698</td>\n",
       "      <td>0.033472</td>\n",
       "      <td>-0.018578</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-09-30</th>\n",
       "      <td>0.041269</td>\n",
       "      <td>-0.027504</td>\n",
       "      <td>-0.018446</td>\n",
       "      <td>-0.022604</td>\n",
       "      <td>0.033348</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-12-31</th>\n",
       "      <td>0.052638</td>\n",
       "      <td>0.018360</td>\n",
       "      <td>-0.021061</td>\n",
       "      <td>-0.042318</td>\n",
       "      <td>0.038545</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-03-31</th>\n",
       "      <td>-0.029866</td>\n",
       "      <td>-0.029948</td>\n",
       "      <td>-0.018479</td>\n",
       "      <td>0.001773</td>\n",
       "      <td>0.061503</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-06-30</th>\n",
       "      <td>-0.140211</td>\n",
       "      <td>-0.101968</td>\n",
       "      <td>-0.090682</td>\n",
       "      <td>-0.075800</td>\n",
       "      <td>0.053837</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-09-30</th>\n",
       "      <td>0.029438</td>\n",
       "      <td>0.055057</td>\n",
       "      <td>0.043883</td>\n",
       "      <td>0.066519</td>\n",
       "      <td>0.046022</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-12-31</th>\n",
       "      <td>-0.142859</td>\n",
       "      <td>-0.146901</td>\n",
       "      <td>-0.103432</td>\n",
       "      <td>-0.088166</td>\n",
       "      <td>0.032821</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-31</th>\n",
       "      <td>-0.043452</td>\n",
       "      <td>-0.037701</td>\n",
       "      <td>-0.028802</td>\n",
       "      <td>-0.011269</td>\n",
       "      <td>-0.013677</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-30</th>\n",
       "      <td>-0.130258</td>\n",
       "      <td>-0.176515</td>\n",
       "      <td>-0.174435</td>\n",
       "      <td>-0.159506</td>\n",
       "      <td>-0.072834</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-09-30</th>\n",
       "      <td>-0.093944</td>\n",
       "      <td>-0.096928</td>\n",
       "      <td>-0.078241</td>\n",
       "      <td>-0.095259</td>\n",
       "      <td>-0.030372</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-12-31</th>\n",
       "      <td>-0.030495</td>\n",
       "      <td>-0.055868</td>\n",
       "      <td>-0.083759</td>\n",
       "      <td>-0.121908</td>\n",
       "      <td>-0.155737</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-03-31</th>\n",
       "      <td>0.322519</td>\n",
       "      <td>0.360572</td>\n",
       "      <td>0.360666</td>\n",
       "      <td>0.347404</td>\n",
       "      <td>0.248789</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-06-30</th>\n",
       "      <td>-0.038595</td>\n",
       "      <td>-0.083301</td>\n",
       "      <td>-0.112009</td>\n",
       "      <td>-0.105376</td>\n",
       "      <td>-0.059535</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-09-30</th>\n",
       "      <td>-0.011589</td>\n",
       "      <td>-0.022739</td>\n",
       "      <td>-0.014767</td>\n",
       "      <td>-0.014654</td>\n",
       "      <td>0.020907</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-12-31</th>\n",
       "      <td>0.068192</td>\n",
       "      <td>0.054329</td>\n",
       "      <td>0.048272</td>\n",
       "      <td>0.057666</td>\n",
       "      <td>0.076590</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "sort              P1        P2        P3        P4        P5\n",
       "month                                                       \n",
       "2012-06-30 -0.035829  0.014964  0.030127  0.000458 -0.037598\n",
       "2012-09-30 -0.053177 -0.064571 -0.089903 -0.080667 -0.054720\n",
       "2012-12-31  0.028016 -0.003315 -0.003321 -0.010244  0.049200\n",
       "2013-03-31  0.092012  0.093649  0.095664  0.070386  0.002877\n",
       "2013-06-30 -0.044113 -0.030772 -0.042116 -0.044958 -0.117705\n",
       "2013-09-30  0.304232  0.315922  0.234699  0.238680  0.093067\n",
       "2013-12-31  0.087619  0.030058  0.020350  0.021501 -0.030306\n",
       "2014-03-31  0.048647  0.065401  0.064303  0.010761 -0.033490\n",
       "2014-06-30  0.149426  0.093611  0.076307  0.038967  0.016499\n",
       "2014-09-30  0.388683  0.305110  0.257455  0.224166  0.100102\n",
       "2014-12-31 -0.095141 -0.021213 -0.012894  0.006360  0.215952\n",
       "2015-03-31  0.519555  0.463932  0.510442  0.413932  0.192381\n",
       "2015-06-30  0.369303  0.299063  0.256728  0.246567  0.128564\n",
       "2015-09-30 -0.327592 -0.359598 -0.321888 -0.325113 -0.301595\n",
       "2015-12-31  0.664669  0.543853  0.469118  0.381411  0.129069\n",
       "2016-03-31 -0.174685 -0.194861 -0.212325 -0.216477 -0.144801\n",
       "2016-06-30  0.047155  0.078318  0.089698  0.033472 -0.018578\n",
       "2016-09-30  0.041269 -0.027504 -0.018446 -0.022604  0.033348\n",
       "2016-12-31  0.052638  0.018360 -0.021061 -0.042318  0.038545\n",
       "2017-03-31 -0.029866 -0.029948 -0.018479  0.001773  0.061503\n",
       "2017-06-30 -0.140211 -0.101968 -0.090682 -0.075800  0.053837\n",
       "2017-09-30  0.029438  0.055057  0.043883  0.066519  0.046022\n",
       "2017-12-31 -0.142859 -0.146901 -0.103432 -0.088166  0.032821\n",
       "2018-03-31 -0.043452 -0.037701 -0.028802 -0.011269 -0.013677\n",
       "2018-06-30 -0.130258 -0.176515 -0.174435 -0.159506 -0.072834\n",
       "2018-09-30 -0.093944 -0.096928 -0.078241 -0.095259 -0.030372\n",
       "2018-12-31 -0.030495 -0.055868 -0.083759 -0.121908 -0.155737\n",
       "2019-03-31  0.322519  0.360572  0.360666  0.347404  0.248789\n",
       "2019-06-30 -0.038595 -0.083301 -0.112009 -0.105376 -0.059535\n",
       "2019-09-30 -0.011589 -0.022739 -0.014767 -0.014654  0.020907\n",
       "2019-12-31  0.068192  0.054329  0.048272  0.057666  0.076590"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "Quarter_data = portfolio_size.resample('QE').apply(lambda x: (1+x/100).prod() - 1)\n",
    "Quarter_data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "Quarter_data['P1price'] = (1 + Quarter_data['P1']).cumprod()\n",
    "Quarter_data['P2price'] = (1 + Quarter_data['P2']).cumprod()\n",
    "Quarter_data['P3price'] = (1 + Quarter_data['P3']).cumprod()\n",
    "Quarter_data['P4price'] = (1 + Quarter_data['P4']).cumprod()\n",
    "Quarter_data['P5price'] = (1 + Quarter_data['P5']).cumprod()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th>sort</th>\n",
       "      <th>P1price</th>\n",
       "      <th>P2price</th>\n",
       "      <th>P3price</th>\n",
       "      <th>P4price</th>\n",
       "      <th>P5price</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>month</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2012-06-30</th>\n",
       "      <td>0.964171</td>\n",
       "      <td>1.014964</td>\n",
       "      <td>1.030127</td>\n",
       "      <td>1.000458</td>\n",
       "      <td>0.962402</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-09-30</th>\n",
       "      <td>0.912900</td>\n",
       "      <td>0.949427</td>\n",
       "      <td>0.937515</td>\n",
       "      <td>0.919754</td>\n",
       "      <td>0.909740</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-31</th>\n",
       "      <td>0.938476</td>\n",
       "      <td>0.946279</td>\n",
       "      <td>0.934402</td>\n",
       "      <td>0.910332</td>\n",
       "      <td>0.954499</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2013-03-31</th>\n",
       "      <td>1.024826</td>\n",
       "      <td>1.034898</td>\n",
       "      <td>1.023790</td>\n",
       "      <td>0.974407</td>\n",
       "      <td>0.957245</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2013-06-30</th>\n",
       "      <td>0.979618</td>\n",
       "      <td>1.003052</td>\n",
       "      <td>0.980672</td>\n",
       "      <td>0.930599</td>\n",
       "      <td>0.844573</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2013-09-30</th>\n",
       "      <td>1.277649</td>\n",
       "      <td>1.319938</td>\n",
       "      <td>1.210836</td>\n",
       "      <td>1.152715</td>\n",
       "      <td>0.923175</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2013-12-31</th>\n",
       "      <td>1.389595</td>\n",
       "      <td>1.359612</td>\n",
       "      <td>1.235476</td>\n",
       "      <td>1.177499</td>\n",
       "      <td>0.895197</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2014-03-31</th>\n",
       "      <td>1.457195</td>\n",
       "      <td>1.448533</td>\n",
       "      <td>1.314921</td>\n",
       "      <td>1.190170</td>\n",
       "      <td>0.865216</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2014-06-30</th>\n",
       "      <td>1.674937</td>\n",
       "      <td>1.584132</td>\n",
       "      <td>1.415259</td>\n",
       "      <td>1.236548</td>\n",
       "      <td>0.879491</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2014-09-30</th>\n",
       "      <td>2.325956</td>\n",
       "      <td>2.067466</td>\n",
       "      <td>1.779624</td>\n",
       "      <td>1.513739</td>\n",
       "      <td>0.967530</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2014-12-31</th>\n",
       "      <td>2.104662</td>\n",
       "      <td>2.023610</td>\n",
       "      <td>1.756678</td>\n",
       "      <td>1.523367</td>\n",
       "      <td>1.176470</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-03-31</th>\n",
       "      <td>3.198151</td>\n",
       "      <td>2.962427</td>\n",
       "      <td>2.653360</td>\n",
       "      <td>2.153937</td>\n",
       "      <td>1.402801</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-06-30</th>\n",
       "      <td>4.379238</td>\n",
       "      <td>3.848381</td>\n",
       "      <td>3.334554</td>\n",
       "      <td>2.685026</td>\n",
       "      <td>1.583150</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-09-30</th>\n",
       "      <td>2.944635</td>\n",
       "      <td>2.464510</td>\n",
       "      <td>2.261202</td>\n",
       "      <td>1.812089</td>\n",
       "      <td>1.105679</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-12-31</th>\n",
       "      <td>4.901843</td>\n",
       "      <td>3.804841</td>\n",
       "      <td>3.321973</td>\n",
       "      <td>2.503240</td>\n",
       "      <td>1.248389</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-03-31</th>\n",
       "      <td>4.045565</td>\n",
       "      <td>3.063425</td>\n",
       "      <td>2.616634</td>\n",
       "      <td>1.961347</td>\n",
       "      <td>1.067621</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-06-30</th>\n",
       "      <td>4.236333</td>\n",
       "      <td>3.303348</td>\n",
       "      <td>2.851340</td>\n",
       "      <td>2.026997</td>\n",
       "      <td>1.047787</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-09-30</th>\n",
       "      <td>4.411162</td>\n",
       "      <td>3.212492</td>\n",
       "      <td>2.798743</td>\n",
       "      <td>1.981179</td>\n",
       "      <td>1.082728</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-12-31</th>\n",
       "      <td>4.643357</td>\n",
       "      <td>3.271472</td>\n",
       "      <td>2.739799</td>\n",
       "      <td>1.897339</td>\n",
       "      <td>1.124462</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-03-31</th>\n",
       "      <td>4.504678</td>\n",
       "      <td>3.173497</td>\n",
       "      <td>2.689170</td>\n",
       "      <td>1.900703</td>\n",
       "      <td>1.193620</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-06-30</th>\n",
       "      <td>3.873074</td>\n",
       "      <td>2.849901</td>\n",
       "      <td>2.445310</td>\n",
       "      <td>1.756631</td>\n",
       "      <td>1.257881</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-09-30</th>\n",
       "      <td>3.987088</td>\n",
       "      <td>3.006807</td>\n",
       "      <td>2.552616</td>\n",
       "      <td>1.873480</td>\n",
       "      <td>1.315772</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-12-31</th>\n",
       "      <td>3.417499</td>\n",
       "      <td>2.565105</td>\n",
       "      <td>2.288595</td>\n",
       "      <td>1.708303</td>\n",
       "      <td>1.358957</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-31</th>\n",
       "      <td>3.269001</td>\n",
       "      <td>2.468398</td>\n",
       "      <td>2.222679</td>\n",
       "      <td>1.689051</td>\n",
       "      <td>1.340370</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-30</th>\n",
       "      <td>2.843186</td>\n",
       "      <td>2.032689</td>\n",
       "      <td>1.834967</td>\n",
       "      <td>1.419637</td>\n",
       "      <td>1.242746</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-09-30</th>\n",
       "      <td>2.576086</td>\n",
       "      <td>1.835666</td>\n",
       "      <td>1.691396</td>\n",
       "      <td>1.284405</td>\n",
       "      <td>1.205001</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-12-31</th>\n",
       "      <td>2.497527</td>\n",
       "      <td>1.733110</td>\n",
       "      <td>1.549727</td>\n",
       "      <td>1.127826</td>\n",
       "      <td>1.017338</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-03-31</th>\n",
       "      <td>3.303028</td>\n",
       "      <td>2.358020</td>\n",
       "      <td>2.108661</td>\n",
       "      <td>1.519636</td>\n",
       "      <td>1.270441</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-06-30</th>\n",
       "      <td>3.175547</td>\n",
       "      <td>2.161595</td>\n",
       "      <td>1.872473</td>\n",
       "      <td>1.359504</td>\n",
       "      <td>1.194805</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-09-30</th>\n",
       "      <td>3.138747</td>\n",
       "      <td>2.112443</td>\n",
       "      <td>1.844822</td>\n",
       "      <td>1.339582</td>\n",
       "      <td>1.219785</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-12-31</th>\n",
       "      <td>3.352784</td>\n",
       "      <td>2.227210</td>\n",
       "      <td>1.933875</td>\n",
       "      <td>1.416831</td>\n",
       "      <td>1.313208</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "sort         P1price   P2price   P3price   P4price   P5price\n",
       "month                                                       \n",
       "2012-06-30  0.964171  1.014964  1.030127  1.000458  0.962402\n",
       "2012-09-30  0.912900  0.949427  0.937515  0.919754  0.909740\n",
       "2012-12-31  0.938476  0.946279  0.934402  0.910332  0.954499\n",
       "2013-03-31  1.024826  1.034898  1.023790  0.974407  0.957245\n",
       "2013-06-30  0.979618  1.003052  0.980672  0.930599  0.844573\n",
       "2013-09-30  1.277649  1.319938  1.210836  1.152715  0.923175\n",
       "2013-12-31  1.389595  1.359612  1.235476  1.177499  0.895197\n",
       "2014-03-31  1.457195  1.448533  1.314921  1.190170  0.865216\n",
       "2014-06-30  1.674937  1.584132  1.415259  1.236548  0.879491\n",
       "2014-09-30  2.325956  2.067466  1.779624  1.513739  0.967530\n",
       "2014-12-31  2.104662  2.023610  1.756678  1.523367  1.176470\n",
       "2015-03-31  3.198151  2.962427  2.653360  2.153937  1.402801\n",
       "2015-06-30  4.379238  3.848381  3.334554  2.685026  1.583150\n",
       "2015-09-30  2.944635  2.464510  2.261202  1.812089  1.105679\n",
       "2015-12-31  4.901843  3.804841  3.321973  2.503240  1.248389\n",
       "2016-03-31  4.045565  3.063425  2.616634  1.961347  1.067621\n",
       "2016-06-30  4.236333  3.303348  2.851340  2.026997  1.047787\n",
       "2016-09-30  4.411162  3.212492  2.798743  1.981179  1.082728\n",
       "2016-12-31  4.643357  3.271472  2.739799  1.897339  1.124462\n",
       "2017-03-31  4.504678  3.173497  2.689170  1.900703  1.193620\n",
       "2017-06-30  3.873074  2.849901  2.445310  1.756631  1.257881\n",
       "2017-09-30  3.987088  3.006807  2.552616  1.873480  1.315772\n",
       "2017-12-31  3.417499  2.565105  2.288595  1.708303  1.358957\n",
       "2018-03-31  3.269001  2.468398  2.222679  1.689051  1.340370\n",
       "2018-06-30  2.843186  2.032689  1.834967  1.419637  1.242746\n",
       "2018-09-30  2.576086  1.835666  1.691396  1.284405  1.205001\n",
       "2018-12-31  2.497527  1.733110  1.549727  1.127826  1.017338\n",
       "2019-03-31  3.303028  2.358020  2.108661  1.519636  1.270441\n",
       "2019-06-30  3.175547  2.161595  1.872473  1.359504  1.194805\n",
       "2019-09-30  3.138747  2.112443  1.844822  1.339582  1.219785\n",
       "2019-12-31  3.352784  2.227210  1.933875  1.416831  1.313208"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "SMB = Quarter_data.iloc[:, -5:]\n",
    "SMB\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
       "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"720.58125pt\" height=\"392.514375pt\" viewBox=\"0 0 720.58125 392.514375\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">\n",
       " <metadata>\n",
       "  <rdf:RDF xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n",
       "   <cc:Work>\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\n",
       "    <dc:date>2024-12-19T16:21:09.983487</dc:date>\n",
       "    <dc:format>image/svg+xml</dc:format>\n",
       "    <dc:creator>\n",
       "     <cc:Agent>\n",
       "      <dc:title>Matplotlib v3.5.2, https://matplotlib.org/</dc:title>\n",
       "     </cc:Agent>\n",
       "    </dc:creator>\n",
       "   </cc:Work>\n",
       "  </rdf:RDF>\n",
       " </metadata>\n",
       " <defs>\n",
       "  <style type=\"text/css\">*{stroke-linejoin: round; stroke-linecap: butt}</style>\n",
       " </defs>\n",
       " <g id=\"figure_1\">\n",
       "  <g id=\"patch_1\">\n",
       "   <path d=\"M 0 392.514375 \n",
       "L 720.58125 392.514375 \n",
       "L 720.58125 0 \n",
       "L 0 0 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "  </g>\n",
       "  <g id=\"axes_1\">\n",
       "   <g id=\"patch_2\">\n",
       "    <path d=\"M 43.78125 354.958125 \n",
       "L 713.38125 354.958125 \n",
       "L 713.38125 22.318125 \n",
       "L 43.78125 22.318125 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_1\">\n",
       "    <g id=\"xtick_1\">\n",
       "     <g id=\"line2d_1\">\n",
       "      <path d=\"M 115.317813 354.958125 \n",
       "L 115.317813 22.318125 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_2\">\n",
       "      <defs>\n",
       "       <path id=\"m1fa0140bad\" d=\"M 0 0 \n",
       "L 0 3.5 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m1fa0140bad\" x=\"115.317813\" y=\"354.958125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_1\">\n",
       "      <!-- 2013 -->\n",
       "      <g transform=\"translate(102.592813 369.556562)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-32\" d=\"M 1228 531 \n",
       "L 3431 531 \n",
       "L 3431 0 \n",
       "L 469 0 \n",
       "L 469 531 \n",
       "Q 828 903 1448 1529 \n",
       "Q 2069 2156 2228 2338 \n",
       "Q 2531 2678 2651 2914 \n",
       "Q 2772 3150 2772 3378 \n",
       "Q 2772 3750 2511 3984 \n",
       "Q 2250 4219 1831 4219 \n",
       "Q 1534 4219 1204 4116 \n",
       "Q 875 4013 500 3803 \n",
       "L 500 4441 \n",
       "Q 881 4594 1212 4672 \n",
       "Q 1544 4750 1819 4750 \n",
       "Q 2544 4750 2975 4387 \n",
       "Q 3406 4025 3406 3419 \n",
       "Q 3406 3131 3298 2873 \n",
       "Q 3191 2616 2906 2266 \n",
       "Q 2828 2175 2409 1742 \n",
       "Q 1991 1309 1228 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-30\" d=\"M 2034 4250 \n",
       "Q 1547 4250 1301 3770 \n",
       "Q 1056 3291 1056 2328 \n",
       "Q 1056 1369 1301 889 \n",
       "Q 1547 409 2034 409 \n",
       "Q 2525 409 2770 889 \n",
       "Q 3016 1369 3016 2328 \n",
       "Q 3016 3291 2770 3770 \n",
       "Q 2525 4250 2034 4250 \n",
       "z\n",
       "M 2034 4750 \n",
       "Q 2819 4750 3233 4129 \n",
       "Q 3647 3509 3647 2328 \n",
       "Q 3647 1150 3233 529 \n",
       "Q 2819 -91 2034 -91 \n",
       "Q 1250 -91 836 529 \n",
       "Q 422 1150 422 2328 \n",
       "Q 422 3509 836 4129 \n",
       "Q 1250 4750 2034 4750 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-31\" d=\"M 794 531 \n",
       "L 1825 531 \n",
       "L 1825 4091 \n",
       "L 703 3866 \n",
       "L 703 4441 \n",
       "L 1819 4666 \n",
       "L 2450 4666 \n",
       "L 2450 531 \n",
       "L 3481 531 \n",
       "L 3481 0 \n",
       "L 794 0 \n",
       "L 794 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-33\" d=\"M 2597 2516 \n",
       "Q 3050 2419 3304 2112 \n",
       "Q 3559 1806 3559 1356 \n",
       "Q 3559 666 3084 287 \n",
       "Q 2609 -91 1734 -91 \n",
       "Q 1441 -91 1130 -33 \n",
       "Q 819 25 488 141 \n",
       "L 488 750 \n",
       "Q 750 597 1062 519 \n",
       "Q 1375 441 1716 441 \n",
       "Q 2309 441 2620 675 \n",
       "Q 2931 909 2931 1356 \n",
       "Q 2931 1769 2642 2001 \n",
       "Q 2353 2234 1838 2234 \n",
       "L 1294 2234 \n",
       "L 1294 2753 \n",
       "L 1863 2753 \n",
       "Q 2328 2753 2575 2939 \n",
       "Q 2822 3125 2822 3475 \n",
       "Q 2822 3834 2567 4026 \n",
       "Q 2313 4219 1838 4219 \n",
       "Q 1578 4219 1281 4162 \n",
       "Q 984 4106 628 3988 \n",
       "L 628 4550 \n",
       "Q 988 4650 1302 4700 \n",
       "Q 1616 4750 1894 4750 \n",
       "Q 2613 4750 3031 4423 \n",
       "Q 3450 4097 3450 3541 \n",
       "Q 3450 3153 3228 2886 \n",
       "Q 3006 2619 2597 2516 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-33\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_2\">\n",
       "     <g id=\"line2d_3\">\n",
       "      <path d=\"M 196.407395 354.958125 \n",
       "L 196.407395 22.318125 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_4\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m1fa0140bad\" x=\"196.407395\" y=\"354.958125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_2\">\n",
       "      <!-- 2014 -->\n",
       "      <g transform=\"translate(183.682395 369.556562)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-34\" d=\"M 2419 4116 \n",
       "L 825 1625 \n",
       "L 2419 1625 \n",
       "L 2419 4116 \n",
       "z\n",
       "M 2253 4666 \n",
       "L 3047 4666 \n",
       "L 3047 1625 \n",
       "L 3713 1625 \n",
       "L 3713 1100 \n",
       "L 3047 1100 \n",
       "L 3047 0 \n",
       "L 2419 0 \n",
       "L 2419 1100 \n",
       "L 313 1100 \n",
       "L 313 1709 \n",
       "L 2253 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-34\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_3\">\n",
       "     <g id=\"line2d_5\">\n",
       "      <path d=\"M 277.496977 354.958125 \n",
       "L 277.496977 22.318125 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_6\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m1fa0140bad\" x=\"277.496977\" y=\"354.958125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_3\">\n",
       "      <!-- 2015 -->\n",
       "      <g transform=\"translate(264.771977 369.556562)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-35\" d=\"M 691 4666 \n",
       "L 3169 4666 \n",
       "L 3169 4134 \n",
       "L 1269 4134 \n",
       "L 1269 2991 \n",
       "Q 1406 3038 1543 3061 \n",
       "Q 1681 3084 1819 3084 \n",
       "Q 2600 3084 3056 2656 \n",
       "Q 3513 2228 3513 1497 \n",
       "Q 3513 744 3044 326 \n",
       "Q 2575 -91 1722 -91 \n",
       "Q 1428 -91 1123 -41 \n",
       "Q 819 9 494 109 \n",
       "L 494 744 \n",
       "Q 775 591 1075 516 \n",
       "Q 1375 441 1709 441 \n",
       "Q 2250 441 2565 725 \n",
       "Q 2881 1009 2881 1497 \n",
       "Q 2881 1984 2565 2268 \n",
       "Q 2250 2553 1709 2553 \n",
       "Q 1456 2553 1204 2497 \n",
       "Q 953 2441 691 2322 \n",
       "L 691 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_4\">\n",
       "     <g id=\"line2d_7\">\n",
       "      <path d=\"M 358.586559 354.958125 \n",
       "L 358.586559 22.318125 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_8\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m1fa0140bad\" x=\"358.586559\" y=\"354.958125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_4\">\n",
       "      <!-- 2016 -->\n",
       "      <g transform=\"translate(345.861559 369.556562)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-36\" d=\"M 2113 2584 \n",
       "Q 1688 2584 1439 2293 \n",
       "Q 1191 2003 1191 1497 \n",
       "Q 1191 994 1439 701 \n",
       "Q 1688 409 2113 409 \n",
       "Q 2538 409 2786 701 \n",
       "Q 3034 994 3034 1497 \n",
       "Q 3034 2003 2786 2293 \n",
       "Q 2538 2584 2113 2584 \n",
       "z\n",
       "M 3366 4563 \n",
       "L 3366 3988 \n",
       "Q 3128 4100 2886 4159 \n",
       "Q 2644 4219 2406 4219 \n",
       "Q 1781 4219 1451 3797 \n",
       "Q 1122 3375 1075 2522 \n",
       "Q 1259 2794 1537 2939 \n",
       "Q 1816 3084 2150 3084 \n",
       "Q 2853 3084 3261 2657 \n",
       "Q 3669 2231 3669 1497 \n",
       "Q 3669 778 3244 343 \n",
       "Q 2819 -91 2113 -91 \n",
       "Q 1303 -91 875 529 \n",
       "Q 447 1150 447 2328 \n",
       "Q 447 3434 972 4092 \n",
       "Q 1497 4750 2381 4750 \n",
       "Q 2619 4750 2861 4703 \n",
       "Q 3103 4656 3366 4563 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-36\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_5\">\n",
       "     <g id=\"line2d_9\">\n",
       "      <path d=\"M 439.898304 354.958125 \n",
       "L 439.898304 22.318125 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_10\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m1fa0140bad\" x=\"439.898304\" y=\"354.958125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_5\">\n",
       "      <!-- 2017 -->\n",
       "      <g transform=\"translate(427.173304 369.556562)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-37\" d=\"M 525 4666 \n",
       "L 3525 4666 \n",
       "L 3525 4397 \n",
       "L 1831 0 \n",
       "L 1172 0 \n",
       "L 2766 4134 \n",
       "L 525 4134 \n",
       "L 525 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-37\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_6\">\n",
       "     <g id=\"line2d_11\">\n",
       "      <path d=\"M 520.987886 354.958125 \n",
       "L 520.987886 22.318125 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_12\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m1fa0140bad\" x=\"520.987886\" y=\"354.958125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_6\">\n",
       "      <!-- 2018 -->\n",
       "      <g transform=\"translate(508.262886 369.556562)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-38\" d=\"M 2034 2216 \n",
       "Q 1584 2216 1326 1975 \n",
       "Q 1069 1734 1069 1313 \n",
       "Q 1069 891 1326 650 \n",
       "Q 1584 409 2034 409 \n",
       "Q 2484 409 2743 651 \n",
       "Q 3003 894 3003 1313 \n",
       "Q 3003 1734 2745 1975 \n",
       "Q 2488 2216 2034 2216 \n",
       "z\n",
       "M 1403 2484 \n",
       "Q 997 2584 770 2862 \n",
       "Q 544 3141 544 3541 \n",
       "Q 544 4100 942 4425 \n",
       "Q 1341 4750 2034 4750 \n",
       "Q 2731 4750 3128 4425 \n",
       "Q 3525 4100 3525 3541 \n",
       "Q 3525 3141 3298 2862 \n",
       "Q 3072 2584 2669 2484 \n",
       "Q 3125 2378 3379 2068 \n",
       "Q 3634 1759 3634 1313 \n",
       "Q 3634 634 3220 271 \n",
       "Q 2806 -91 2034 -91 \n",
       "Q 1263 -91 848 271 \n",
       "Q 434 634 434 1313 \n",
       "Q 434 1759 690 2068 \n",
       "Q 947 2378 1403 2484 \n",
       "z\n",
       "M 1172 3481 \n",
       "Q 1172 3119 1398 2916 \n",
       "Q 1625 2713 2034 2713 \n",
       "Q 2441 2713 2670 2916 \n",
       "Q 2900 3119 2900 3481 \n",
       "Q 2900 3844 2670 4047 \n",
       "Q 2441 4250 2034 4250 \n",
       "Q 1625 4250 1398 4047 \n",
       "Q 1172 3844 1172 3481 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-38\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_7\">\n",
       "     <g id=\"line2d_13\">\n",
       "      <path d=\"M 602.077468 354.958125 \n",
       "L 602.077468 22.318125 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_14\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m1fa0140bad\" x=\"602.077468\" y=\"354.958125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_7\">\n",
       "      <!-- 2019 -->\n",
       "      <g transform=\"translate(589.352468 369.556562)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-39\" d=\"M 703 97 \n",
       "L 703 672 \n",
       "Q 941 559 1184 500 \n",
       "Q 1428 441 1663 441 \n",
       "Q 2288 441 2617 861 \n",
       "Q 2947 1281 2994 2138 \n",
       "Q 2813 1869 2534 1725 \n",
       "Q 2256 1581 1919 1581 \n",
       "Q 1219 1581 811 2004 \n",
       "Q 403 2428 403 3163 \n",
       "Q 403 3881 828 4315 \n",
       "Q 1253 4750 1959 4750 \n",
       "Q 2769 4750 3195 4129 \n",
       "Q 3622 3509 3622 2328 \n",
       "Q 3622 1225 3098 567 \n",
       "Q 2575 -91 1691 -91 \n",
       "Q 1453 -91 1209 -44 \n",
       "Q 966 3 703 97 \n",
       "z\n",
       "M 1959 2075 \n",
       "Q 2384 2075 2632 2365 \n",
       "Q 2881 2656 2881 3163 \n",
       "Q 2881 3666 2632 3958 \n",
       "Q 2384 4250 1959 4250 \n",
       "Q 1534 4250 1286 3958 \n",
       "Q 1038 3666 1038 3163 \n",
       "Q 1038 2656 1286 2365 \n",
       "Q 1534 2075 1959 2075 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-39\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_8\">\n",
       "     <g id=\"line2d_15\">\n",
       "      <path d=\"M 683.16705 354.958125 \n",
       "L 683.16705 22.318125 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_16\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m1fa0140bad\" x=\"683.16705\" y=\"354.958125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_8\">\n",
       "      <!-- 2020 -->\n",
       "      <g transform=\"translate(670.44205 369.556562)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_9\">\n",
       "     <!-- Date -->\n",
       "     <g transform=\"translate(366.630469 383.234687)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-44\" d=\"M 1259 4147 \n",
       "L 1259 519 \n",
       "L 2022 519 \n",
       "Q 2988 519 3436 956 \n",
       "Q 3884 1394 3884 2338 \n",
       "Q 3884 3275 3436 3711 \n",
       "Q 2988 4147 2022 4147 \n",
       "L 1259 4147 \n",
       "z\n",
       "M 628 4666 \n",
       "L 1925 4666 \n",
       "Q 3281 4666 3915 4102 \n",
       "Q 4550 3538 4550 2338 \n",
       "Q 4550 1131 3912 565 \n",
       "Q 3275 0 1925 0 \n",
       "L 628 0 \n",
       "L 628 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-61\" d=\"M 2194 1759 \n",
       "Q 1497 1759 1228 1600 \n",
       "Q 959 1441 959 1056 \n",
       "Q 959 750 1161 570 \n",
       "Q 1363 391 1709 391 \n",
       "Q 2188 391 2477 730 \n",
       "Q 2766 1069 2766 1631 \n",
       "L 2766 1759 \n",
       "L 2194 1759 \n",
       "z\n",
       "M 3341 1997 \n",
       "L 3341 0 \n",
       "L 2766 0 \n",
       "L 2766 531 \n",
       "Q 2569 213 2275 61 \n",
       "Q 1981 -91 1556 -91 \n",
       "Q 1019 -91 701 211 \n",
       "Q 384 513 384 1019 \n",
       "Q 384 1609 779 1909 \n",
       "Q 1175 2209 1959 2209 \n",
       "L 2766 2209 \n",
       "L 2766 2266 \n",
       "Q 2766 2663 2505 2880 \n",
       "Q 2244 3097 1772 3097 \n",
       "Q 1472 3097 1187 3025 \n",
       "Q 903 2953 641 2809 \n",
       "L 641 3341 \n",
       "Q 956 3463 1253 3523 \n",
       "Q 1550 3584 1831 3584 \n",
       "Q 2591 3584 2966 3190 \n",
       "Q 3341 2797 3341 1997 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-74\" d=\"M 1172 4494 \n",
       "L 1172 3500 \n",
       "L 2356 3500 \n",
       "L 2356 3053 \n",
       "L 1172 3053 \n",
       "L 1172 1153 \n",
       "Q 1172 725 1289 603 \n",
       "Q 1406 481 1766 481 \n",
       "L 2356 481 \n",
       "L 2356 0 \n",
       "L 1766 0 \n",
       "Q 1100 0 847 248 \n",
       "Q 594 497 594 1153 \n",
       "L 594 3053 \n",
       "L 172 3053 \n",
       "L 172 3500 \n",
       "L 594 3500 \n",
       "L 594 4494 \n",
       "L 1172 4494 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-65\" d=\"M 3597 1894 \n",
       "L 3597 1613 \n",
       "L 953 1613 \n",
       "Q 991 1019 1311 708 \n",
       "Q 1631 397 2203 397 \n",
       "Q 2534 397 2845 478 \n",
       "Q 3156 559 3463 722 \n",
       "L 3463 178 \n",
       "Q 3153 47 2828 -22 \n",
       "Q 2503 -91 2169 -91 \n",
       "Q 1331 -91 842 396 \n",
       "Q 353 884 353 1716 \n",
       "Q 353 2575 817 3079 \n",
       "Q 1281 3584 2069 3584 \n",
       "Q 2775 3584 3186 3129 \n",
       "Q 3597 2675 3597 1894 \n",
       "z\n",
       "M 3022 2063 \n",
       "Q 3016 2534 2758 2815 \n",
       "Q 2500 3097 2075 3097 \n",
       "Q 1594 3097 1305 2825 \n",
       "Q 1016 2553 972 2059 \n",
       "L 3022 2063 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-44\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"77.001953\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"138.28125\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"177.490234\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_2\">\n",
       "    <g id=\"ytick_1\">\n",
       "     <g id=\"line2d_17\">\n",
       "      <path d=\"M 43.78125 328.253707 \n",
       "L 713.38125 328.253707 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_18\">\n",
       "      <defs>\n",
       "       <path id=\"m9a49723f20\" d=\"M 0 0 \n",
       "L -3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m9a49723f20\" x=\"43.78125\" y=\"328.253707\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_10\">\n",
       "      <!-- 1.0 -->\n",
       "      <g transform=\"translate(20.878125 332.052926)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-2e\" d=\"M 684 794 \n",
       "L 1344 794 \n",
       "L 1344 0 \n",
       "L 684 0 \n",
       "L 684 794 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_19\">\n",
       "      <path d=\"M 43.78125 290.987264 \n",
       "L 713.38125 290.987264 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_20\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m9a49723f20\" x=\"43.78125\" y=\"290.987264\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_11\">\n",
       "      <!-- 1.5 -->\n",
       "      <g transform=\"translate(20.878125 294.786483)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_21\">\n",
       "      <path d=\"M 43.78125 253.720822 \n",
       "L 713.38125 253.720822 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_22\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m9a49723f20\" x=\"43.78125\" y=\"253.720822\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_12\">\n",
       "      <!-- 2.0 -->\n",
       "      <g transform=\"translate(20.878125 257.520041)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_23\">\n",
       "      <path d=\"M 43.78125 216.45438 \n",
       "L 713.38125 216.45438 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_24\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m9a49723f20\" x=\"43.78125\" y=\"216.45438\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_13\">\n",
       "      <!-- 2.5 -->\n",
       "      <g transform=\"translate(20.878125 220.253598)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_5\">\n",
       "     <g id=\"line2d_25\">\n",
       "      <path d=\"M 43.78125 179.187937 \n",
       "L 713.38125 179.187937 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_26\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m9a49723f20\" x=\"43.78125\" y=\"179.187937\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_14\">\n",
       "      <!-- 3.0 -->\n",
       "      <g transform=\"translate(20.878125 182.987156)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_6\">\n",
       "     <g id=\"line2d_27\">\n",
       "      <path d=\"M 43.78125 141.921495 \n",
       "L 713.38125 141.921495 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_28\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m9a49723f20\" x=\"43.78125\" y=\"141.921495\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_15\">\n",
       "      <!-- 3.5 -->\n",
       "      <g transform=\"translate(20.878125 145.720713)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_7\">\n",
       "     <g id=\"line2d_29\">\n",
       "      <path d=\"M 43.78125 104.655052 \n",
       "L 713.38125 104.655052 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_30\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m9a49723f20\" x=\"43.78125\" y=\"104.655052\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_16\">\n",
       "      <!-- 4.0 -->\n",
       "      <g transform=\"translate(20.878125 108.454271)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-34\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_8\">\n",
       "     <g id=\"line2d_31\">\n",
       "      <path d=\"M 43.78125 67.38861 \n",
       "L 713.38125 67.38861 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_32\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m9a49723f20\" x=\"43.78125\" y=\"67.38861\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_17\">\n",
       "      <!-- 4.5 -->\n",
       "      <g transform=\"translate(20.878125 71.187828)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-34\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_9\">\n",
       "     <g id=\"line2d_33\">\n",
       "      <path d=\"M 43.78125 30.122167 \n",
       "L 713.38125 30.122167 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_34\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m9a49723f20\" x=\"43.78125\" y=\"30.122167\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_18\">\n",
       "      <!-- 5.0 -->\n",
       "      <g transform=\"translate(20.878125 33.921386)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-35\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_19\">\n",
       "     <!-- Cumulative Return -->\n",
       "     <g transform=\"translate(14.798438 235.356094)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-43\" d=\"M 4122 4306 \n",
       "L 4122 3641 \n",
       "Q 3803 3938 3442 4084 \n",
       "Q 3081 4231 2675 4231 \n",
       "Q 1875 4231 1450 3742 \n",
       "Q 1025 3253 1025 2328 \n",
       "Q 1025 1406 1450 917 \n",
       "Q 1875 428 2675 428 \n",
       "Q 3081 428 3442 575 \n",
       "Q 3803 722 4122 1019 \n",
       "L 4122 359 \n",
       "Q 3791 134 3420 21 \n",
       "Q 3050 -91 2638 -91 \n",
       "Q 1578 -91 968 557 \n",
       "Q 359 1206 359 2328 \n",
       "Q 359 3453 968 4101 \n",
       "Q 1578 4750 2638 4750 \n",
       "Q 3056 4750 3426 4639 \n",
       "Q 3797 4528 4122 4306 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-75\" d=\"M 544 1381 \n",
       "L 544 3500 \n",
       "L 1119 3500 \n",
       "L 1119 1403 \n",
       "Q 1119 906 1312 657 \n",
       "Q 1506 409 1894 409 \n",
       "Q 2359 409 2629 706 \n",
       "Q 2900 1003 2900 1516 \n",
       "L 2900 3500 \n",
       "L 3475 3500 \n",
       "L 3475 0 \n",
       "L 2900 0 \n",
       "L 2900 538 \n",
       "Q 2691 219 2414 64 \n",
       "Q 2138 -91 1772 -91 \n",
       "Q 1169 -91 856 284 \n",
       "Q 544 659 544 1381 \n",
       "z\n",
       "M 1991 3584 \n",
       "L 1991 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6d\" d=\"M 3328 2828 \n",
       "Q 3544 3216 3844 3400 \n",
       "Q 4144 3584 4550 3584 \n",
       "Q 5097 3584 5394 3201 \n",
       "Q 5691 2819 5691 2113 \n",
       "L 5691 0 \n",
       "L 5113 0 \n",
       "L 5113 2094 \n",
       "Q 5113 2597 4934 2840 \n",
       "Q 4756 3084 4391 3084 \n",
       "Q 3944 3084 3684 2787 \n",
       "Q 3425 2491 3425 1978 \n",
       "L 3425 0 \n",
       "L 2847 0 \n",
       "L 2847 2094 \n",
       "Q 2847 2600 2669 2842 \n",
       "Q 2491 3084 2119 3084 \n",
       "Q 1678 3084 1418 2786 \n",
       "Q 1159 2488 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1356 3278 1631 3431 \n",
       "Q 1906 3584 2284 3584 \n",
       "Q 2666 3584 2933 3390 \n",
       "Q 3200 3197 3328 2828 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6c\" d=\"M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-69\" d=\"M 603 3500 \n",
       "L 1178 3500 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 3500 \n",
       "z\n",
       "M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 4134 \n",
       "L 603 4134 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-76\" d=\"M 191 3500 \n",
       "L 800 3500 \n",
       "L 1894 563 \n",
       "L 2988 3500 \n",
       "L 3597 3500 \n",
       "L 2284 0 \n",
       "L 1503 0 \n",
       "L 191 3500 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-20\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-52\" d=\"M 2841 2188 \n",
       "Q 3044 2119 3236 1894 \n",
       "Q 3428 1669 3622 1275 \n",
       "L 4263 0 \n",
       "L 3584 0 \n",
       "L 2988 1197 \n",
       "Q 2756 1666 2539 1819 \n",
       "Q 2322 1972 1947 1972 \n",
       "L 1259 1972 \n",
       "L 1259 0 \n",
       "L 628 0 \n",
       "L 628 4666 \n",
       "L 2053 4666 \n",
       "Q 2853 4666 3247 4331 \n",
       "Q 3641 3997 3641 3322 \n",
       "Q 3641 2881 3436 2590 \n",
       "Q 3231 2300 2841 2188 \n",
       "z\n",
       "M 1259 4147 \n",
       "L 1259 2491 \n",
       "L 2053 2491 \n",
       "Q 2509 2491 2742 2702 \n",
       "Q 2975 2913 2975 3322 \n",
       "Q 2975 3731 2742 3939 \n",
       "Q 2509 4147 2053 4147 \n",
       "L 1259 4147 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-72\" d=\"M 2631 2963 \n",
       "Q 2534 3019 2420 3045 \n",
       "Q 2306 3072 2169 3072 \n",
       "Q 1681 3072 1420 2755 \n",
       "Q 1159 2438 1159 1844 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1341 3275 1631 3429 \n",
       "Q 1922 3584 2338 3584 \n",
       "Q 2397 3584 2469 3576 \n",
       "Q 2541 3569 2628 3553 \n",
       "L 2631 2963 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6e\" d=\"M 3513 2113 \n",
       "L 3513 0 \n",
       "L 2938 0 \n",
       "L 2938 2094 \n",
       "Q 2938 2591 2744 2837 \n",
       "Q 2550 3084 2163 3084 \n",
       "Q 1697 3084 1428 2787 \n",
       "Q 1159 2491 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1366 3272 1645 3428 \n",
       "Q 1925 3584 2291 3584 \n",
       "Q 2894 3584 3203 3211 \n",
       "Q 3513 2838 3513 2113 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-43\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-75\" x=\"69.824219\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"133.203125\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-75\" x=\"230.615234\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6c\" x=\"293.994141\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"321.777344\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"383.056641\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"422.265625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-76\" x=\"450.048828\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"509.228516\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-20\" x=\"570.751953\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-52\" x=\"602.539062\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"667.521484\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"729.044922\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-75\" x=\"768.253906\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"831.632812\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"870.996094\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_35\">\n",
       "    <path d=\"M 74.217614 330.924111 \n",
       "L 94.656632 334.74554 \n",
       "L 115.095649 332.839283 \n",
       "L 135.090341 326.403318 \n",
       "L 155.307196 329.772845 \n",
       "L 175.746214 307.559714 \n",
       "L 196.185231 299.216063 \n",
       "L 216.179923 294.17766 \n",
       "L 236.396778 277.948687 \n",
       "L 256.835795 229.426371 \n",
       "L 277.274813 245.920049 \n",
       "L 297.269505 164.419195 \n",
       "L 317.486359 76.389323 \n",
       "L 337.925377 183.314427 \n",
       "L 358.364395 37.438125 \n",
       "L 378.58125 101.258996 \n",
       "L 398.798105 87.04045 \n",
       "L 419.237123 74.009987 \n",
       "L 439.676141 56.703814 \n",
       "L 459.670832 67.039975 \n",
       "L 479.887687 114.115195 \n",
       "L 500.326705 105.617392 \n",
       "L 520.765722 148.070558 \n",
       "L 540.760414 159.138488 \n",
       "L 560.977269 190.875704 \n",
       "L 581.416286 210.783482 \n",
       "L 601.855304 216.638665 \n",
       "L 621.849996 156.602353 \n",
       "L 642.066851 166.103898 \n",
       "L 662.505868 168.846755 \n",
       "L 682.944886 152.893916 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #1f77b4; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_36\">\n",
       "    <path d=\"M 74.217614 327.138401 \n",
       "L 94.656632 332.02308 \n",
       "L 115.095649 332.25766 \n",
       "L 135.090341 325.652685 \n",
       "L 155.307196 328.026234 \n",
       "L 175.746214 304.40781 \n",
       "L 196.185231 301.450757 \n",
       "L 216.179923 294.823245 \n",
       "L 236.396778 284.716667 \n",
       "L 256.835795 248.692353 \n",
       "L 277.274813 251.96112 \n",
       "L 297.269505 181.988332 \n",
       "L 317.486359 115.955662 \n",
       "L 337.925377 219.099575 \n",
       "L 358.364395 119.200782 \n",
       "L 378.58125 174.460661 \n",
       "L 398.798105 156.57857 \n",
       "L 419.237123 163.350306 \n",
       "L 439.676141 158.954375 \n",
       "L 459.670832 166.25674 \n",
       "L 479.887687 190.375241 \n",
       "L 500.326705 178.680587 \n",
       "L 520.765722 211.601934 \n",
       "L 540.760414 218.809759 \n",
       "L 560.977269 251.284399 \n",
       "L 581.416286 265.969142 \n",
       "L 601.855304 273.612918 \n",
       "L 621.849996 227.036557 \n",
       "L 642.066851 241.676668 \n",
       "L 662.505868 245.340147 \n",
       "L 682.944886 236.786223 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #ff7f0e; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_37\">\n",
       "    <path d=\"M 74.217614 326.008284 \n",
       "L 94.656632 332.910859 \n",
       "L 115.095649 333.142944 \n",
       "L 135.090341 326.480552 \n",
       "L 155.307196 329.694243 \n",
       "L 175.746214 312.53952 \n",
       "L 196.185231 310.703015 \n",
       "L 216.179923 304.781735 \n",
       "L 236.396778 297.303291 \n",
       "L 256.835795 270.146085 \n",
       "L 277.274813 271.856299 \n",
       "L 297.269505 205.023981 \n",
       "L 317.486359 154.252696 \n",
       "L 337.925377 234.252661 \n",
       "L 358.364395 155.190349 \n",
       "L 378.58125 207.761335 \n",
       "L 398.798105 190.268019 \n",
       "L 419.237123 194.188234 \n",
       "L 439.676141 198.581497 \n",
       "L 459.670832 202.355027 \n",
       "L 479.887687 220.530584 \n",
       "L 500.326705 212.532725 \n",
       "L 520.765722 232.210976 \n",
       "L 540.760414 237.123883 \n",
       "L 560.977269 266.021222 \n",
       "L 581.416286 276.721938 \n",
       "L 601.855304 287.280951 \n",
       "L 621.849996 245.622027 \n",
       "L 642.066851 263.225814 \n",
       "L 662.505868 265.286714 \n",
       "L 682.944886 258.649331 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #2ca02c; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_38\">\n",
       "    <path d=\"M 74.217614 328.219559 \n",
       "L 94.656632 334.234648 \n",
       "L 115.095649 334.9369 \n",
       "L 135.090341 330.161238 \n",
       "L 155.307196 333.42635 \n",
       "L 175.746214 316.871424 \n",
       "L 196.185231 315.024189 \n",
       "L 216.179923 314.079778 \n",
       "L 236.396778 310.623114 \n",
       "L 256.835795 289.963233 \n",
       "L 277.274813 289.245637 \n",
       "L 297.269505 242.247443 \n",
       "L 317.486359 202.663866 \n",
       "L 337.925377 267.726364 \n",
       "L 358.364395 216.212898 \n",
       "L 378.58125 256.601735 \n",
       "L 398.798105 251.708625 \n",
       "L 419.237123 255.123619 \n",
       "L 439.676141 261.372457 \n",
       "L 459.670832 261.121709 \n",
       "L 479.887687 271.859841 \n",
       "L 500.326705 263.150733 \n",
       "L 520.765722 275.46186 \n",
       "L 540.760414 276.896733 \n",
       "L 560.977269 296.976923 \n",
       "L 581.416286 307.056218 \n",
       "L 601.855304 318.726486 \n",
       "L 621.849996 289.523704 \n",
       "L 642.066851 301.458848 \n",
       "L 662.505868 302.943691 \n",
       "L 682.944886 297.186103 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #d62728; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_39\">\n",
       "    <path d=\"M 74.217614 331.055978 \n",
       "L 94.656632 334.981057 \n",
       "L 115.095649 331.645023 \n",
       "L 135.090341 331.440344 \n",
       "L 155.307196 339.838125 \n",
       "L 175.746214 333.979726 \n",
       "L 196.185231 336.065011 \n",
       "L 216.179923 338.299544 \n",
       "L 236.396778 337.235568 \n",
       "L 256.835795 330.673759 \n",
       "L 277.274813 315.100871 \n",
       "L 297.269505 298.231821 \n",
       "L 317.486359 284.789881 \n",
       "L 337.925377 320.377125 \n",
       "L 358.364395 309.740582 \n",
       "L 378.58125 323.213706 \n",
       "L 398.798105 324.692033 \n",
       "L 419.237123 322.087739 \n",
       "L 439.676141 318.977173 \n",
       "L 459.670832 313.822632 \n",
       "L 479.887687 309.033076 \n",
       "L 500.326705 304.718317 \n",
       "L 520.765722 301.499582 \n",
       "L 540.760414 302.884924 \n",
       "L 560.977269 310.161118 \n",
       "L 581.416286 312.974361 \n",
       "L 601.855304 326.961454 \n",
       "L 621.849996 308.096973 \n",
       "L 642.066851 313.734312 \n",
       "L 662.505868 311.872474 \n",
       "L 682.944886 304.909404 \n",
       "\" clip-path=\"url(#pdcff08d27c)\" style=\"fill: none; stroke: #9467bd; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 43.78125 354.958125 \n",
       "L 43.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 713.38125 354.958125 \n",
       "L 713.38125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_5\">\n",
       "    <path d=\"M 43.78125 354.958125 \n",
       "L 713.38125 354.958125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_6\">\n",
       "    <path d=\"M 43.78125 22.318125 \n",
       "L 713.38125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_20\">\n",
       "    <!-- Stock Returns Over Time -->\n",
       "    <g transform=\"translate(304.10625 16.318125)scale(0.12 -0.12)\">\n",
       "     <defs>\n",
       "      <path id=\"DejaVuSans-53\" d=\"M 3425 4513 \n",
       "L 3425 3897 \n",
       "Q 3066 4069 2747 4153 \n",
       "Q 2428 4238 2131 4238 \n",
       "Q 1616 4238 1336 4038 \n",
       "Q 1056 3838 1056 3469 \n",
       "Q 1056 3159 1242 3001 \n",
       "Q 1428 2844 1947 2747 \n",
       "L 2328 2669 \n",
       "Q 3034 2534 3370 2195 \n",
       "Q 3706 1856 3706 1288 \n",
       "Q 3706 609 3251 259 \n",
       "Q 2797 -91 1919 -91 \n",
       "Q 1588 -91 1214 -16 \n",
       "Q 841 59 441 206 \n",
       "L 441 856 \n",
       "Q 825 641 1194 531 \n",
       "Q 1563 422 1919 422 \n",
       "Q 2459 422 2753 634 \n",
       "Q 3047 847 3047 1241 \n",
       "Q 3047 1584 2836 1778 \n",
       "Q 2625 1972 2144 2069 \n",
       "L 1759 2144 \n",
       "Q 1053 2284 737 2584 \n",
       "Q 422 2884 422 3419 \n",
       "Q 422 4038 858 4394 \n",
       "Q 1294 4750 2059 4750 \n",
       "Q 2388 4750 2728 4690 \n",
       "Q 3069 4631 3425 4513 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      <path id=\"DejaVuSans-6f\" d=\"M 1959 3097 \n",
       "Q 1497 3097 1228 2736 \n",
       "Q 959 2375 959 1747 \n",
       "Q 959 1119 1226 758 \n",
       "Q 1494 397 1959 397 \n",
       "Q 2419 397 2687 759 \n",
       "Q 2956 1122 2956 1747 \n",
       "Q 2956 2369 2687 2733 \n",
       "Q 2419 3097 1959 3097 \n",
       "z\n",
       "M 1959 3584 \n",
       "Q 2709 3584 3137 3096 \n",
       "Q 3566 2609 3566 1747 \n",
       "Q 3566 888 3137 398 \n",
       "Q 2709 -91 1959 -91 \n",
       "Q 1206 -91 779 398 \n",
       "Q 353 888 353 1747 \n",
       "Q 353 2609 779 3096 \n",
       "Q 1206 3584 1959 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      <path id=\"DejaVuSans-63\" d=\"M 3122 3366 \n",
       "L 3122 2828 \n",
       "Q 2878 2963 2633 3030 \n",
       "Q 2388 3097 2138 3097 \n",
       "Q 1578 3097 1268 2742 \n",
       "Q 959 2388 959 1747 \n",
       "Q 959 1106 1268 751 \n",
       "Q 1578 397 2138 397 \n",
       "Q 2388 397 2633 464 \n",
       "Q 2878 531 3122 666 \n",
       "L 3122 134 \n",
       "Q 2881 22 2623 -34 \n",
       "Q 2366 -91 2075 -91 \n",
       "Q 1284 -91 818 406 \n",
       "Q 353 903 353 1747 \n",
       "Q 353 2603 823 3093 \n",
       "Q 1294 3584 2113 3584 \n",
       "Q 2378 3584 2631 3529 \n",
       "Q 2884 3475 3122 3366 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      <path id=\"DejaVuSans-6b\" d=\"M 581 4863 \n",
       "L 1159 4863 \n",
       "L 1159 1991 \n",
       "L 2875 3500 \n",
       "L 3609 3500 \n",
       "L 1753 1863 \n",
       "L 3688 0 \n",
       "L 2938 0 \n",
       "L 1159 1709 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      <path id=\"DejaVuSans-73\" d=\"M 2834 3397 \n",
       "L 2834 2853 \n",
       "Q 2591 2978 2328 3040 \n",
       "Q 2066 3103 1784 3103 \n",
       "Q 1356 3103 1142 2972 \n",
       "Q 928 2841 928 2578 \n",
       "Q 928 2378 1081 2264 \n",
       "Q 1234 2150 1697 2047 \n",
       "L 1894 2003 \n",
       "Q 2506 1872 2764 1633 \n",
       "Q 3022 1394 3022 966 \n",
       "Q 3022 478 2636 193 \n",
       "Q 2250 -91 1575 -91 \n",
       "Q 1294 -91 989 -36 \n",
       "Q 684 19 347 128 \n",
       "L 347 722 \n",
       "Q 666 556 975 473 \n",
       "Q 1284 391 1588 391 \n",
       "Q 1994 391 2212 530 \n",
       "Q 2431 669 2431 922 \n",
       "Q 2431 1156 2273 1281 \n",
       "Q 2116 1406 1581 1522 \n",
       "L 1381 1569 \n",
       "Q 847 1681 609 1914 \n",
       "Q 372 2147 372 2553 \n",
       "Q 372 3047 722 3315 \n",
       "Q 1072 3584 1716 3584 \n",
       "Q 2034 3584 2315 3537 \n",
       "Q 2597 3491 2834 3397 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      <path id=\"DejaVuSans-4f\" d=\"M 2522 4238 \n",
       "Q 1834 4238 1429 3725 \n",
       "Q 1025 3213 1025 2328 \n",
       "Q 1025 1447 1429 934 \n",
       "Q 1834 422 2522 422 \n",
       "Q 3209 422 3611 934 \n",
       "Q 4013 1447 4013 2328 \n",
       "Q 4013 3213 3611 3725 \n",
       "Q 3209 4238 2522 4238 \n",
       "z\n",
       "M 2522 4750 \n",
       "Q 3503 4750 4090 4092 \n",
       "Q 4678 3434 4678 2328 \n",
       "Q 4678 1225 4090 567 \n",
       "Q 3503 -91 2522 -91 \n",
       "Q 1538 -91 948 565 \n",
       "Q 359 1222 359 2328 \n",
       "Q 359 3434 948 4092 \n",
       "Q 1538 4750 2522 4750 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      <path id=\"DejaVuSans-54\" d=\"M -19 4666 \n",
       "L 3928 4666 \n",
       "L 3928 4134 \n",
       "L 2272 4134 \n",
       "L 2272 0 \n",
       "L 1638 0 \n",
       "L 1638 4134 \n",
       "L -19 4134 \n",
       "L -19 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "     </defs>\n",
       "     <use xlink:href=\"#DejaVuSans-53\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-74\" x=\"63.476562\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-6f\" x=\"102.685547\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-63\" x=\"163.867188\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-6b\" x=\"218.847656\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-20\" x=\"276.757812\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-52\" x=\"308.544922\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"373.527344\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-74\" x=\"435.050781\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-75\" x=\"474.259766\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-72\" x=\"537.638672\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-6e\" x=\"577.001953\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-73\" x=\"640.380859\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-20\" x=\"692.480469\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-4f\" x=\"724.267578\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-76\" x=\"802.978516\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"862.158203\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-72\" x=\"923.681641\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-20\" x=\"964.794922\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-54\" x=\"996.582031\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-69\" x=\"1054.541016\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-6d\" x=\"1082.324219\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"1179.736328\"/>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"legend_1\">\n",
       "    <g id=\"patch_7\">\n",
       "     <path d=\"M 637.1 118.386875 \n",
       "L 706.38125 118.386875 \n",
       "Q 708.38125 118.386875 708.38125 116.386875 \n",
       "L 708.38125 29.318125 \n",
       "Q 708.38125 27.318125 706.38125 27.318125 \n",
       "L 637.1 27.318125 \n",
       "Q 635.1 27.318125 635.1 29.318125 \n",
       "L 635.1 116.386875 \n",
       "Q 635.1 118.386875 637.1 118.386875 \n",
       "z\n",
       "\" style=\"fill: #ffffff; opacity: 0.8; stroke: #cccccc; stroke-linejoin: miter\"/>\n",
       "    </g>\n",
       "    <g id=\"text_21\">\n",
       "     <!-- Stock -->\n",
       "     <g transform=\"translate(657.902344 38.916562)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-53\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"63.476562\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6f\" x=\"102.685547\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-63\" x=\"163.867188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6b\" x=\"218.847656\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_40\">\n",
       "     <path d=\"M 639.1 50.094688 \n",
       "L 649.1 50.094688 \n",
       "L 659.1 50.094688 \n",
       "\" style=\"fill: none; stroke: #1f77b4; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_22\">\n",
       "     <!-- P1price -->\n",
       "     <g transform=\"translate(667.1 53.594688)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-50\" d=\"M 1259 4147 \n",
       "L 1259 2394 \n",
       "L 2053 2394 \n",
       "Q 2494 2394 2734 2622 \n",
       "Q 2975 2850 2975 3272 \n",
       "Q 2975 3691 2734 3919 \n",
       "Q 2494 4147 2053 4147 \n",
       "L 1259 4147 \n",
       "z\n",
       "M 628 4666 \n",
       "L 2053 4666 \n",
       "Q 2838 4666 3239 4311 \n",
       "Q 3641 3956 3641 3272 \n",
       "Q 3641 2581 3239 2228 \n",
       "Q 2838 1875 2053 1875 \n",
       "L 1259 1875 \n",
       "L 1259 0 \n",
       "L 628 0 \n",
       "L 628 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-70\" d=\"M 1159 525 \n",
       "L 1159 -1331 \n",
       "L 581 -1331 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2969 \n",
       "Q 1341 3281 1617 3432 \n",
       "Q 1894 3584 2278 3584 \n",
       "Q 2916 3584 3314 3078 \n",
       "Q 3713 2572 3713 1747 \n",
       "Q 3713 922 3314 415 \n",
       "Q 2916 -91 2278 -91 \n",
       "Q 1894 -91 1617 61 \n",
       "Q 1341 213 1159 525 \n",
       "z\n",
       "M 3116 1747 \n",
       "Q 3116 2381 2855 2742 \n",
       "Q 2594 3103 2138 3103 \n",
       "Q 1681 3103 1420 2742 \n",
       "Q 1159 2381 1159 1747 \n",
       "Q 1159 1113 1420 752 \n",
       "Q 1681 391 2138 391 \n",
       "Q 2594 391 2855 752 \n",
       "Q 3116 1113 3116 1747 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-50\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-31\" x=\"60.302734\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-70\" x=\"123.925781\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"187.402344\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"228.515625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-63\" x=\"256.298828\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"311.279297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_41\">\n",
       "     <path d=\"M 639.1 64.772813 \n",
       "L 649.1 64.772813 \n",
       "L 659.1 64.772813 \n",
       "\" style=\"fill: none; stroke: #ff7f0e; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_23\">\n",
       "     <!-- P2price -->\n",
       "     <g transform=\"translate(667.1 68.272813)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-50\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-32\" x=\"60.302734\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-70\" x=\"123.925781\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"187.402344\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"228.515625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-63\" x=\"256.298828\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"311.279297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_42\">\n",
       "     <path d=\"M 639.1 79.450938 \n",
       "L 649.1 79.450938 \n",
       "L 659.1 79.450938 \n",
       "\" style=\"fill: none; stroke: #2ca02c; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_24\">\n",
       "     <!-- P3price -->\n",
       "     <g transform=\"translate(667.1 82.950938)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-50\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-33\" x=\"60.302734\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-70\" x=\"123.925781\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"187.402344\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"228.515625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-63\" x=\"256.298828\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"311.279297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_43\">\n",
       "     <path d=\"M 639.1 94.129063 \n",
       "L 649.1 94.129063 \n",
       "L 659.1 94.129063 \n",
       "\" style=\"fill: none; stroke: #d62728; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_25\">\n",
       "     <!-- P4price -->\n",
       "     <g transform=\"translate(667.1 97.629063)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-50\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-34\" x=\"60.302734\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-70\" x=\"123.925781\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"187.402344\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"228.515625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-63\" x=\"256.298828\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"311.279297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_44\">\n",
       "     <path d=\"M 639.1 108.807188 \n",
       "L 649.1 108.807188 \n",
       "L 659.1 108.807188 \n",
       "\" style=\"fill: none; stroke: #9467bd; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_26\">\n",
       "     <!-- P5price -->\n",
       "     <g transform=\"translate(667.1 112.307188)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-50\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-35\" x=\"60.302734\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-70\" x=\"123.925781\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"187.402344\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"228.515625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-63\" x=\"256.298828\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"311.279297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       " </g>\n",
       " <defs>\n",
       "  <clipPath id=\"pdcff08d27c\">\n",
       "   <rect x=\"43.78125\" y=\"22.318125\" width=\"669.6\" height=\"332.64\"/>\n",
       "  </clipPath>\n",
       " </defs>\n",
       "</svg>\n"
      ],
      "text/plain": [
       "<Figure size 1200x600 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "from matplotlib import style\n",
    "import matplotlib.pyplot as plt  # 画图模块\n",
    "import matplotlib.dates as mdates\n",
    "from matplotlib.font_manager import FontProperties # 作图中文\n",
    "from pylab import mpl\n",
    "import seaborn as sns\n",
    "%matplotlib inline\n",
    "%config InlineBackend.figure_format = 'svg'# Change the figure style\n",
    "plt.figure(figsize=(12, 6))\n",
    "for column in SMB.columns:\n",
    "    plt.plot(SMB.index, SMB[column], label=column)\n",
    "plt.title('Stock Returns Over Time')\n",
    "plt.xlabel('Date')\n",
    "plt.ylabel('Cumulative Return')\n",
    "plt.legend(title='Stock')\n",
    "plt.grid(True)\n",
    "plt.savefig('SMB.pdf', bbox_inches='tight')\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "问题二："
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>one</th>\n",
       "      <th>two</th>\n",
       "      <th>three</th>\n",
       "      <th>four</th>\n",
       "      <th>five</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>month</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2012-04-01</th>\n",
       "      <td>0.81772</td>\n",
       "      <td>3.42562</td>\n",
       "      <td>7.47856</td>\n",
       "      <td>16.15202</td>\n",
       "      <td>59.01090</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-05-01</th>\n",
       "      <td>0.81772</td>\n",
       "      <td>3.42562</td>\n",
       "      <td>7.47856</td>\n",
       "      <td>16.15202</td>\n",
       "      <td>59.01090</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-01</th>\n",
       "      <td>0.81772</td>\n",
       "      <td>3.42562</td>\n",
       "      <td>7.47856</td>\n",
       "      <td>16.15202</td>\n",
       "      <td>59.01090</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-07-01</th>\n",
       "      <td>0.59170</td>\n",
       "      <td>3.90904</td>\n",
       "      <td>9.40364</td>\n",
       "      <td>20.45418</td>\n",
       "      <td>74.99740</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-08-01</th>\n",
       "      <td>0.59170</td>\n",
       "      <td>3.90904</td>\n",
       "      <td>9.40364</td>\n",
       "      <td>20.45418</td>\n",
       "      <td>74.99740</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-08-01</th>\n",
       "      <td>0.06674</td>\n",
       "      <td>0.61190</td>\n",
       "      <td>2.69308</td>\n",
       "      <td>8.61328</td>\n",
       "      <td>85.22980</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-09-01</th>\n",
       "      <td>0.06674</td>\n",
       "      <td>0.61190</td>\n",
       "      <td>2.69308</td>\n",
       "      <td>8.61328</td>\n",
       "      <td>85.22980</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-10-01</th>\n",
       "      <td>0.06462</td>\n",
       "      <td>0.54466</td>\n",
       "      <td>1.71906</td>\n",
       "      <td>5.84476</td>\n",
       "      <td>82.79221</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-11-01</th>\n",
       "      <td>0.06462</td>\n",
       "      <td>0.54466</td>\n",
       "      <td>1.71906</td>\n",
       "      <td>5.84476</td>\n",
       "      <td>82.79221</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-12-01</th>\n",
       "      <td>0.06462</td>\n",
       "      <td>0.54466</td>\n",
       "      <td>1.71906</td>\n",
       "      <td>5.84476</td>\n",
       "      <td>82.79221</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>93 rows × 5 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                one      two    three      four      five\n",
       "month                                                    \n",
       "2012-04-01  0.81772  3.42562  7.47856  16.15202  59.01090\n",
       "2012-05-01  0.81772  3.42562  7.47856  16.15202  59.01090\n",
       "2012-06-01  0.81772  3.42562  7.47856  16.15202  59.01090\n",
       "2012-07-01  0.59170  3.90904  9.40364  20.45418  74.99740\n",
       "2012-08-01  0.59170  3.90904  9.40364  20.45418  74.99740\n",
       "...             ...      ...      ...       ...       ...\n",
       "2019-08-01  0.06674  0.61190  2.69308   8.61328  85.22980\n",
       "2019-09-01  0.06674  0.61190  2.69308   8.61328  85.22980\n",
       "2019-10-01  0.06462  0.54466  1.71906   5.84476  82.79221\n",
       "2019-11-01  0.06462  0.54466  1.71906   5.84476  82.79221\n",
       "2019-12-01  0.06462  0.54466  1.71906   5.84476  82.79221\n",
       "\n",
       "[93 rows x 5 columns]"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "fenweishu = pd.DataFrame(\n",
    "    data1.groupby(['month'])['instown'].quantile([0.2,0.4,0.6,0.8,1]))\n",
    "fenweishu = fenweishu.reset_index()\n",
    "fenweishu = fenweishu.pivot_table(index='month',columns='level_1',values='instown')\n",
    "fenweishu.columns = ['one','two','three','four','five']\n",
    "fenweishu"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>stkcd</th>\n",
       "      <th>stknme</th>\n",
       "      <th>conme</th>\n",
       "      <th>month</th>\n",
       "      <th>retrf</th>\n",
       "      <th>mktrf</th>\n",
       "      <th>smb</th>\n",
       "      <th>hml</th>\n",
       "      <th>umd</th>\n",
       "      <th>size</th>\n",
       "      <th>...</th>\n",
       "      <th>ppe</th>\n",
       "      <th>intang</th>\n",
       "      <th>numanalyst</th>\n",
       "      <th>instown</th>\n",
       "      <th>mv</th>\n",
       "      <th>one</th>\n",
       "      <th>two</th>\n",
       "      <th>three</th>\n",
       "      <th>four</th>\n",
       "      <th>five</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2013-07-01</td>\n",
       "      <td>9.0756</td>\n",
       "      <td>1.8833</td>\n",
       "      <td>5.1896</td>\n",
       "      <td>-0.1922</td>\n",
       "      <td>6.1829</td>\n",
       "      <td>23.10871</td>\n",
       "      <td>...</td>\n",
       "      <td>0.086185</td>\n",
       "      <td>0.031575</td>\n",
       "      <td>0</td>\n",
       "      <td>6.4646</td>\n",
       "      <td>11874173952</td>\n",
       "      <td>0.32910</td>\n",
       "      <td>2.02670</td>\n",
       "      <td>6.96740</td>\n",
       "      <td>18.79690</td>\n",
       "      <td>75.25140</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2013-08-01</td>\n",
       "      <td>-5.1363</td>\n",
       "      <td>4.5833</td>\n",
       "      <td>5.9407</td>\n",
       "      <td>0.0976</td>\n",
       "      <td>-5.5041</td>\n",
       "      <td>23.10871</td>\n",
       "      <td>...</td>\n",
       "      <td>0.086185</td>\n",
       "      <td>0.031575</td>\n",
       "      <td>0</td>\n",
       "      <td>6.4646</td>\n",
       "      <td>11874173952</td>\n",
       "      <td>0.32910</td>\n",
       "      <td>2.02670</td>\n",
       "      <td>6.96740</td>\n",
       "      <td>18.79690</td>\n",
       "      <td>75.25140</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2013-09-01</td>\n",
       "      <td>3.5840</td>\n",
       "      <td>3.3833</td>\n",
       "      <td>0.5848</td>\n",
       "      <td>2.8554</td>\n",
       "      <td>8.8693</td>\n",
       "      <td>23.10871</td>\n",
       "      <td>...</td>\n",
       "      <td>0.086185</td>\n",
       "      <td>0.031575</td>\n",
       "      <td>0</td>\n",
       "      <td>6.4646</td>\n",
       "      <td>11874173952</td>\n",
       "      <td>0.32910</td>\n",
       "      <td>2.02670</td>\n",
       "      <td>6.96740</td>\n",
       "      <td>18.79690</td>\n",
       "      <td>75.25140</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2014-01-01</td>\n",
       "      <td>-1.0932</td>\n",
       "      <td>-3.6167</td>\n",
       "      <td>5.6921</td>\n",
       "      <td>1.1126</td>\n",
       "      <td>8.9357</td>\n",
       "      <td>23.28204</td>\n",
       "      <td>...</td>\n",
       "      <td>0.098660</td>\n",
       "      <td>0.029798</td>\n",
       "      <td>0</td>\n",
       "      <td>5.6741</td>\n",
       "      <td>11731143680</td>\n",
       "      <td>0.14300</td>\n",
       "      <td>1.89590</td>\n",
       "      <td>6.64060</td>\n",
       "      <td>17.33480</td>\n",
       "      <td>69.83170</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2014-02-01</td>\n",
       "      <td>19.0704</td>\n",
       "      <td>0.9833</td>\n",
       "      <td>3.8899</td>\n",
       "      <td>0.6902</td>\n",
       "      <td>-1.8764</td>\n",
       "      <td>23.28204</td>\n",
       "      <td>...</td>\n",
       "      <td>0.098660</td>\n",
       "      <td>0.029798</td>\n",
       "      <td>0</td>\n",
       "      <td>5.6741</td>\n",
       "      <td>11731143680</td>\n",
       "      <td>0.14300</td>\n",
       "      <td>1.89590</td>\n",
       "      <td>6.64060</td>\n",
       "      <td>17.33480</td>\n",
       "      <td>69.83170</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87427</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-08-01</td>\n",
       "      <td>-5.3373</td>\n",
       "      <td>-1.6917</td>\n",
       "      <td>-0.6838</td>\n",
       "      <td>-5.0887</td>\n",
       "      <td>4.6431</td>\n",
       "      <td>19.54512</td>\n",
       "      <td>...</td>\n",
       "      <td>0.267594</td>\n",
       "      <td>0.025879</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>131675000</td>\n",
       "      <td>0.06674</td>\n",
       "      <td>0.61190</td>\n",
       "      <td>2.69308</td>\n",
       "      <td>8.61328</td>\n",
       "      <td>85.22980</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87428</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-09-01</td>\n",
       "      <td>11.0761</td>\n",
       "      <td>0.4083</td>\n",
       "      <td>0.4298</td>\n",
       "      <td>0.8208</td>\n",
       "      <td>-1.3250</td>\n",
       "      <td>19.54512</td>\n",
       "      <td>...</td>\n",
       "      <td>0.267594</td>\n",
       "      <td>0.025879</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>131675000</td>\n",
       "      <td>0.06674</td>\n",
       "      <td>0.61190</td>\n",
       "      <td>2.69308</td>\n",
       "      <td>8.61328</td>\n",
       "      <td>85.22980</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87429</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-10-01</td>\n",
       "      <td>12.3759</td>\n",
       "      <td>1.3083</td>\n",
       "      <td>-2.5189</td>\n",
       "      <td>-0.0984</td>\n",
       "      <td>3.5783</td>\n",
       "      <td>19.41050</td>\n",
       "      <td>...</td>\n",
       "      <td>0.269671</td>\n",
       "      <td>0.025286</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>127880000</td>\n",
       "      <td>0.06462</td>\n",
       "      <td>0.54466</td>\n",
       "      <td>1.71906</td>\n",
       "      <td>5.84476</td>\n",
       "      <td>82.79221</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87430</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-11-01</td>\n",
       "      <td>0.5954</td>\n",
       "      <td>-1.6917</td>\n",
       "      <td>-0.8970</td>\n",
       "      <td>0.1604</td>\n",
       "      <td>-0.1658</td>\n",
       "      <td>19.41050</td>\n",
       "      <td>...</td>\n",
       "      <td>0.269671</td>\n",
       "      <td>0.025286</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>127880000</td>\n",
       "      <td>0.06462</td>\n",
       "      <td>0.54466</td>\n",
       "      <td>1.71906</td>\n",
       "      <td>5.84476</td>\n",
       "      <td>82.79221</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87431</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-12-01</td>\n",
       "      <td>7.2701</td>\n",
       "      <td>6.2083</td>\n",
       "      <td>1.2581</td>\n",
       "      <td>-0.9661</td>\n",
       "      <td>1.0033</td>\n",
       "      <td>19.41050</td>\n",
       "      <td>...</td>\n",
       "      <td>0.269671</td>\n",
       "      <td>0.025286</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>127880000</td>\n",
       "      <td>0.06462</td>\n",
       "      <td>0.54466</td>\n",
       "      <td>1.71906</td>\n",
       "      <td>5.84476</td>\n",
       "      <td>82.79221</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>87432 rows × 24 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "        stkcd stknme         conme      month    retrf   mktrf     smb  \\\n",
       "0           9   中国宝安  中国宝安集团股份有限公司 2013-07-01   9.0756  1.8833  5.1896   \n",
       "1           9   中国宝安  中国宝安集团股份有限公司 2013-08-01  -5.1363  4.5833  5.9407   \n",
       "2           9   中国宝安  中国宝安集团股份有限公司 2013-09-01   3.5840  3.3833  0.5848   \n",
       "3           9   中国宝安  中国宝安集团股份有限公司 2014-01-01  -1.0932 -3.6167  5.6921   \n",
       "4           9   中国宝安  中国宝安集团股份有限公司 2014-02-01  19.0704  0.9833  3.8899   \n",
       "...       ...    ...           ...        ...      ...     ...     ...   \n",
       "87427  900956   东贝B股  黄石东贝电器股份有限公司 2019-08-01  -5.3373 -1.6917 -0.6838   \n",
       "87428  900956   东贝B股  黄石东贝电器股份有限公司 2019-09-01  11.0761  0.4083  0.4298   \n",
       "87429  900956   东贝B股  黄石东贝电器股份有限公司 2019-10-01  12.3759  1.3083 -2.5189   \n",
       "87430  900956   东贝B股  黄石东贝电器股份有限公司 2019-11-01   0.5954 -1.6917 -0.8970   \n",
       "87431  900956   东贝B股  黄石东贝电器股份有限公司 2019-12-01   7.2701  6.2083  1.2581   \n",
       "\n",
       "          hml     umd      size  ...       ppe    intang  numanalyst  instown  \\\n",
       "0     -0.1922  6.1829  23.10871  ...  0.086185  0.031575           0   6.4646   \n",
       "1      0.0976 -5.5041  23.10871  ...  0.086185  0.031575           0   6.4646   \n",
       "2      2.8554  8.8693  23.10871  ...  0.086185  0.031575           0   6.4646   \n",
       "3      1.1126  8.9357  23.28204  ...  0.098660  0.029798           0   5.6741   \n",
       "4      0.6902 -1.8764  23.28204  ...  0.098660  0.029798           0   5.6741   \n",
       "...       ...     ...       ...  ...       ...       ...         ...      ...   \n",
       "87427 -5.0887  4.6431  19.54512  ...  0.267594  0.025879           0   0.0000   \n",
       "87428  0.8208 -1.3250  19.54512  ...  0.267594  0.025879           0   0.0000   \n",
       "87429 -0.0984  3.5783  19.41050  ...  0.269671  0.025286           0   0.0000   \n",
       "87430  0.1604 -0.1658  19.41050  ...  0.269671  0.025286           0   0.0000   \n",
       "87431 -0.9661  1.0033  19.41050  ...  0.269671  0.025286           0   0.0000   \n",
       "\n",
       "                mv      one      two    three      four      five  \n",
       "0      11874173952  0.32910  2.02670  6.96740  18.79690  75.25140  \n",
       "1      11874173952  0.32910  2.02670  6.96740  18.79690  75.25140  \n",
       "2      11874173952  0.32910  2.02670  6.96740  18.79690  75.25140  \n",
       "3      11731143680  0.14300  1.89590  6.64060  17.33480  69.83170  \n",
       "4      11731143680  0.14300  1.89590  6.64060  17.33480  69.83170  \n",
       "...            ...      ...      ...      ...       ...       ...  \n",
       "87427    131675000  0.06674  0.61190  2.69308   8.61328  85.22980  \n",
       "87428    131675000  0.06674  0.61190  2.69308   8.61328  85.22980  \n",
       "87429    127880000  0.06462  0.54466  1.71906   5.84476  82.79221  \n",
       "87430    127880000  0.06462  0.54466  1.71906   5.84476  82.79221  \n",
       "87431    127880000  0.06462  0.54466  1.71906   5.84476  82.79221  \n",
       "\n",
       "[87432 rows x 24 columns]"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "portfolio = pd.merge(data1,fenweishu,on='month')\n",
    "portfolio"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>stkcd</th>\n",
       "      <th>stknme</th>\n",
       "      <th>conme</th>\n",
       "      <th>month</th>\n",
       "      <th>retrf</th>\n",
       "      <th>mktrf</th>\n",
       "      <th>smb</th>\n",
       "      <th>hml</th>\n",
       "      <th>umd</th>\n",
       "      <th>size</th>\n",
       "      <th>...</th>\n",
       "      <th>intang</th>\n",
       "      <th>numanalyst</th>\n",
       "      <th>instown</th>\n",
       "      <th>mv</th>\n",
       "      <th>one</th>\n",
       "      <th>two</th>\n",
       "      <th>three</th>\n",
       "      <th>four</th>\n",
       "      <th>five</th>\n",
       "      <th>sort</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2013-07-01</td>\n",
       "      <td>9.0756</td>\n",
       "      <td>1.8833</td>\n",
       "      <td>5.1896</td>\n",
       "      <td>-0.1922</td>\n",
       "      <td>6.1829</td>\n",
       "      <td>23.10871</td>\n",
       "      <td>...</td>\n",
       "      <td>0.031575</td>\n",
       "      <td>0</td>\n",
       "      <td>6.4646</td>\n",
       "      <td>11874173952</td>\n",
       "      <td>0.32910</td>\n",
       "      <td>2.02670</td>\n",
       "      <td>6.96740</td>\n",
       "      <td>18.79690</td>\n",
       "      <td>75.25140</td>\n",
       "      <td>P3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2013-08-01</td>\n",
       "      <td>-5.1363</td>\n",
       "      <td>4.5833</td>\n",
       "      <td>5.9407</td>\n",
       "      <td>0.0976</td>\n",
       "      <td>-5.5041</td>\n",
       "      <td>23.10871</td>\n",
       "      <td>...</td>\n",
       "      <td>0.031575</td>\n",
       "      <td>0</td>\n",
       "      <td>6.4646</td>\n",
       "      <td>11874173952</td>\n",
       "      <td>0.32910</td>\n",
       "      <td>2.02670</td>\n",
       "      <td>6.96740</td>\n",
       "      <td>18.79690</td>\n",
       "      <td>75.25140</td>\n",
       "      <td>P3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2013-09-01</td>\n",
       "      <td>3.5840</td>\n",
       "      <td>3.3833</td>\n",
       "      <td>0.5848</td>\n",
       "      <td>2.8554</td>\n",
       "      <td>8.8693</td>\n",
       "      <td>23.10871</td>\n",
       "      <td>...</td>\n",
       "      <td>0.031575</td>\n",
       "      <td>0</td>\n",
       "      <td>6.4646</td>\n",
       "      <td>11874173952</td>\n",
       "      <td>0.32910</td>\n",
       "      <td>2.02670</td>\n",
       "      <td>6.96740</td>\n",
       "      <td>18.79690</td>\n",
       "      <td>75.25140</td>\n",
       "      <td>P3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2014-01-01</td>\n",
       "      <td>-1.0932</td>\n",
       "      <td>-3.6167</td>\n",
       "      <td>5.6921</td>\n",
       "      <td>1.1126</td>\n",
       "      <td>8.9357</td>\n",
       "      <td>23.28204</td>\n",
       "      <td>...</td>\n",
       "      <td>0.029798</td>\n",
       "      <td>0</td>\n",
       "      <td>5.6741</td>\n",
       "      <td>11731143680</td>\n",
       "      <td>0.14300</td>\n",
       "      <td>1.89590</td>\n",
       "      <td>6.64060</td>\n",
       "      <td>17.33480</td>\n",
       "      <td>69.83170</td>\n",
       "      <td>P3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>2014-02-01</td>\n",
       "      <td>19.0704</td>\n",
       "      <td>0.9833</td>\n",
       "      <td>3.8899</td>\n",
       "      <td>0.6902</td>\n",
       "      <td>-1.8764</td>\n",
       "      <td>23.28204</td>\n",
       "      <td>...</td>\n",
       "      <td>0.029798</td>\n",
       "      <td>0</td>\n",
       "      <td>5.6741</td>\n",
       "      <td>11731143680</td>\n",
       "      <td>0.14300</td>\n",
       "      <td>1.89590</td>\n",
       "      <td>6.64060</td>\n",
       "      <td>17.33480</td>\n",
       "      <td>69.83170</td>\n",
       "      <td>P3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87427</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-08-01</td>\n",
       "      <td>-5.3373</td>\n",
       "      <td>-1.6917</td>\n",
       "      <td>-0.6838</td>\n",
       "      <td>-5.0887</td>\n",
       "      <td>4.6431</td>\n",
       "      <td>19.54512</td>\n",
       "      <td>...</td>\n",
       "      <td>0.025879</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>131675000</td>\n",
       "      <td>0.06674</td>\n",
       "      <td>0.61190</td>\n",
       "      <td>2.69308</td>\n",
       "      <td>8.61328</td>\n",
       "      <td>85.22980</td>\n",
       "      <td>P1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87428</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-09-01</td>\n",
       "      <td>11.0761</td>\n",
       "      <td>0.4083</td>\n",
       "      <td>0.4298</td>\n",
       "      <td>0.8208</td>\n",
       "      <td>-1.3250</td>\n",
       "      <td>19.54512</td>\n",
       "      <td>...</td>\n",
       "      <td>0.025879</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>131675000</td>\n",
       "      <td>0.06674</td>\n",
       "      <td>0.61190</td>\n",
       "      <td>2.69308</td>\n",
       "      <td>8.61328</td>\n",
       "      <td>85.22980</td>\n",
       "      <td>P1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87429</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-10-01</td>\n",
       "      <td>12.3759</td>\n",
       "      <td>1.3083</td>\n",
       "      <td>-2.5189</td>\n",
       "      <td>-0.0984</td>\n",
       "      <td>3.5783</td>\n",
       "      <td>19.41050</td>\n",
       "      <td>...</td>\n",
       "      <td>0.025286</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>127880000</td>\n",
       "      <td>0.06462</td>\n",
       "      <td>0.54466</td>\n",
       "      <td>1.71906</td>\n",
       "      <td>5.84476</td>\n",
       "      <td>82.79221</td>\n",
       "      <td>P1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87430</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-11-01</td>\n",
       "      <td>0.5954</td>\n",
       "      <td>-1.6917</td>\n",
       "      <td>-0.8970</td>\n",
       "      <td>0.1604</td>\n",
       "      <td>-0.1658</td>\n",
       "      <td>19.41050</td>\n",
       "      <td>...</td>\n",
       "      <td>0.025286</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>127880000</td>\n",
       "      <td>0.06462</td>\n",
       "      <td>0.54466</td>\n",
       "      <td>1.71906</td>\n",
       "      <td>5.84476</td>\n",
       "      <td>82.79221</td>\n",
       "      <td>P1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87431</th>\n",
       "      <td>900956</td>\n",
       "      <td>东贝B股</td>\n",
       "      <td>黄石东贝电器股份有限公司</td>\n",
       "      <td>2019-12-01</td>\n",
       "      <td>7.2701</td>\n",
       "      <td>6.2083</td>\n",
       "      <td>1.2581</td>\n",
       "      <td>-0.9661</td>\n",
       "      <td>1.0033</td>\n",
       "      <td>19.41050</td>\n",
       "      <td>...</td>\n",
       "      <td>0.025286</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>127880000</td>\n",
       "      <td>0.06462</td>\n",
       "      <td>0.54466</td>\n",
       "      <td>1.71906</td>\n",
       "      <td>5.84476</td>\n",
       "      <td>82.79221</td>\n",
       "      <td>P1</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>87432 rows × 25 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "        stkcd stknme         conme      month    retrf   mktrf     smb  \\\n",
       "0           9   中国宝安  中国宝安集团股份有限公司 2013-07-01   9.0756  1.8833  5.1896   \n",
       "1           9   中国宝安  中国宝安集团股份有限公司 2013-08-01  -5.1363  4.5833  5.9407   \n",
       "2           9   中国宝安  中国宝安集团股份有限公司 2013-09-01   3.5840  3.3833  0.5848   \n",
       "3           9   中国宝安  中国宝安集团股份有限公司 2014-01-01  -1.0932 -3.6167  5.6921   \n",
       "4           9   中国宝安  中国宝安集团股份有限公司 2014-02-01  19.0704  0.9833  3.8899   \n",
       "...       ...    ...           ...        ...      ...     ...     ...   \n",
       "87427  900956   东贝B股  黄石东贝电器股份有限公司 2019-08-01  -5.3373 -1.6917 -0.6838   \n",
       "87428  900956   东贝B股  黄石东贝电器股份有限公司 2019-09-01  11.0761  0.4083  0.4298   \n",
       "87429  900956   东贝B股  黄石东贝电器股份有限公司 2019-10-01  12.3759  1.3083 -2.5189   \n",
       "87430  900956   东贝B股  黄石东贝电器股份有限公司 2019-11-01   0.5954 -1.6917 -0.8970   \n",
       "87431  900956   东贝B股  黄石东贝电器股份有限公司 2019-12-01   7.2701  6.2083  1.2581   \n",
       "\n",
       "          hml     umd      size  ...    intang  numanalyst  instown  \\\n",
       "0     -0.1922  6.1829  23.10871  ...  0.031575           0   6.4646   \n",
       "1      0.0976 -5.5041  23.10871  ...  0.031575           0   6.4646   \n",
       "2      2.8554  8.8693  23.10871  ...  0.031575           0   6.4646   \n",
       "3      1.1126  8.9357  23.28204  ...  0.029798           0   5.6741   \n",
       "4      0.6902 -1.8764  23.28204  ...  0.029798           0   5.6741   \n",
       "...       ...     ...       ...  ...       ...         ...      ...   \n",
       "87427 -5.0887  4.6431  19.54512  ...  0.025879           0   0.0000   \n",
       "87428  0.8208 -1.3250  19.54512  ...  0.025879           0   0.0000   \n",
       "87429 -0.0984  3.5783  19.41050  ...  0.025286           0   0.0000   \n",
       "87430  0.1604 -0.1658  19.41050  ...  0.025286           0   0.0000   \n",
       "87431 -0.9661  1.0033  19.41050  ...  0.025286           0   0.0000   \n",
       "\n",
       "                mv      one      two    three      four      five  sort  \n",
       "0      11874173952  0.32910  2.02670  6.96740  18.79690  75.25140    P3  \n",
       "1      11874173952  0.32910  2.02670  6.96740  18.79690  75.25140    P3  \n",
       "2      11874173952  0.32910  2.02670  6.96740  18.79690  75.25140    P3  \n",
       "3      11731143680  0.14300  1.89590  6.64060  17.33480  69.83170    P3  \n",
       "4      11731143680  0.14300  1.89590  6.64060  17.33480  69.83170    P3  \n",
       "...            ...      ...      ...      ...       ...       ...   ...  \n",
       "87427    131675000  0.06674  0.61190  2.69308   8.61328  85.22980    P1  \n",
       "87428    131675000  0.06674  0.61190  2.69308   8.61328  85.22980    P1  \n",
       "87429    127880000  0.06462  0.54466  1.71906   5.84476  82.79221    P1  \n",
       "87430    127880000  0.06462  0.54466  1.71906   5.84476  82.79221    P1  \n",
       "87431    127880000  0.06462  0.54466  1.71906   5.84476  82.79221    P1  \n",
       "\n",
       "[87432 rows x 25 columns]"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "portfolio['sort'] = np.where(\n",
    "    portfolio['instown'] <= portfolio['one'], 'P1',\n",
    "    np.where(\n",
    "        portfolio['instown'] <= portfolio['two'], 'P2',\n",
    "        np.where(\n",
    "            portfolio['instown'] <= portfolio['three'], 'P3',\n",
    "            np.where(\n",
    "                portfolio['instown'] <= portfolio['four'], 'P4',\n",
    "                'P5'))))\n",
    "portfolio"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>month</th>\n",
       "      <th>sort</th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th rowspan=\"5\" valign=\"top\">2012-04-01</th>\n",
       "      <th>P1</th>\n",
       "      <td>2.462158</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>P2</th>\n",
       "      <td>1.901229</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>P3</th>\n",
       "      <td>8.236512</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>P4</th>\n",
       "      <td>3.660134</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>P5</th>\n",
       "      <td>2.040017</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"5\" valign=\"top\">2019-12-01</th>\n",
       "      <th>P1</th>\n",
       "      <td>7.252284</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>P2</th>\n",
       "      <td>8.177301</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>P3</th>\n",
       "      <td>7.134126</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>P4</th>\n",
       "      <td>8.674617</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>P5</th>\n",
       "      <td>7.618972</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>465 rows × 1 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                        0\n",
       "month      sort          \n",
       "2012-04-01 P1    2.462158\n",
       "           P2    1.901229\n",
       "           P3    8.236512\n",
       "           P4    3.660134\n",
       "           P5    2.040017\n",
       "...                   ...\n",
       "2019-12-01 P1    7.252284\n",
       "           P2    8.177301\n",
       "           P3    7.134126\n",
       "           P4    8.674617\n",
       "           P5    7.618972\n",
       "\n",
       "[465 rows x 1 columns]"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "portfolio_ins =  pd.DataFrame(\n",
    "    portfolio.groupby(['month','sort']).apply(lambda x: np.average(x['retrf'],weights = x['mv']),include_groups=False))\n",
    "portfolio_ins"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>month</th>\n",
       "      <th>sort</th>\n",
       "      <th>r</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2012-04-01</td>\n",
       "      <td>P1</td>\n",
       "      <td>2.462158</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2012-04-01</td>\n",
       "      <td>P2</td>\n",
       "      <td>1.901229</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2012-04-01</td>\n",
       "      <td>P3</td>\n",
       "      <td>8.236512</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2012-04-01</td>\n",
       "      <td>P4</td>\n",
       "      <td>3.660134</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2012-04-01</td>\n",
       "      <td>P5</td>\n",
       "      <td>2.040017</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>460</th>\n",
       "      <td>2019-12-01</td>\n",
       "      <td>P1</td>\n",
       "      <td>7.252284</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>461</th>\n",
       "      <td>2019-12-01</td>\n",
       "      <td>P2</td>\n",
       "      <td>8.177301</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>462</th>\n",
       "      <td>2019-12-01</td>\n",
       "      <td>P3</td>\n",
       "      <td>7.134126</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>463</th>\n",
       "      <td>2019-12-01</td>\n",
       "      <td>P4</td>\n",
       "      <td>8.674617</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>464</th>\n",
       "      <td>2019-12-01</td>\n",
       "      <td>P5</td>\n",
       "      <td>7.618972</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>465 rows × 3 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "         month sort         r\n",
       "0   2012-04-01   P1  2.462158\n",
       "1   2012-04-01   P2  1.901229\n",
       "2   2012-04-01   P3  8.236512\n",
       "3   2012-04-01   P4  3.660134\n",
       "4   2012-04-01   P5  2.040017\n",
       "..         ...  ...       ...\n",
       "460 2019-12-01   P1  7.252284\n",
       "461 2019-12-01   P2  8.177301\n",
       "462 2019-12-01   P3  7.134126\n",
       "463 2019-12-01   P4  8.674617\n",
       "464 2019-12-01   P5  7.618972\n",
       "\n",
       "[465 rows x 3 columns]"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "portfolio_ins = portfolio_ins.reset_index()\n",
    "portfolio_ins.columns = ['month', 'sort', 'r']\n",
    "portfolio_ins['month'] = portfolio_ins['month']\n",
    "portfolio_ins"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th>sort</th>\n",
       "      <th>P1</th>\n",
       "      <th>P2</th>\n",
       "      <th>P3</th>\n",
       "      <th>P4</th>\n",
       "      <th>P5</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>month</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2012-04-01</th>\n",
       "      <td>2.462158</td>\n",
       "      <td>1.901229</td>\n",
       "      <td>8.236512</td>\n",
       "      <td>3.660134</td>\n",
       "      <td>2.040017</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-05-01</th>\n",
       "      <td>-4.520976</td>\n",
       "      <td>-3.349127</td>\n",
       "      <td>3.510598</td>\n",
       "      <td>5.711157</td>\n",
       "      <td>2.837665</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-01</th>\n",
       "      <td>-3.258616</td>\n",
       "      <td>-6.908536</td>\n",
       "      <td>-8.095486</td>\n",
       "      <td>-6.916951</td>\n",
       "      <td>-1.247031</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-07-01</th>\n",
       "      <td>-3.157178</td>\n",
       "      <td>-6.538390</td>\n",
       "      <td>-9.665753</td>\n",
       "      <td>-10.915688</td>\n",
       "      <td>-6.323546</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-08-01</th>\n",
       "      <td>-0.502221</td>\n",
       "      <td>0.248084</td>\n",
       "      <td>-2.623755</td>\n",
       "      <td>-4.505772</td>\n",
       "      <td>-0.088047</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-08-01</th>\n",
       "      <td>-3.050253</td>\n",
       "      <td>-1.763514</td>\n",
       "      <td>-3.133919</td>\n",
       "      <td>-1.331471</td>\n",
       "      <td>3.898158</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-09-01</th>\n",
       "      <td>1.280084</td>\n",
       "      <td>0.646390</td>\n",
       "      <td>1.338526</td>\n",
       "      <td>1.544086</td>\n",
       "      <td>0.426663</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-10-01</th>\n",
       "      <td>-1.341725</td>\n",
       "      <td>-0.525789</td>\n",
       "      <td>-1.881486</td>\n",
       "      <td>0.562814</td>\n",
       "      <td>1.224310</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-11-01</th>\n",
       "      <td>-1.780620</td>\n",
       "      <td>-2.712882</td>\n",
       "      <td>-0.582692</td>\n",
       "      <td>-0.190713</td>\n",
       "      <td>-0.482239</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-12-01</th>\n",
       "      <td>7.252284</td>\n",
       "      <td>8.177301</td>\n",
       "      <td>7.134126</td>\n",
       "      <td>8.674617</td>\n",
       "      <td>7.618972</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>93 rows × 5 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "sort              P1        P2        P3         P4        P5\n",
       "month                                                        \n",
       "2012-04-01  2.462158  1.901229  8.236512   3.660134  2.040017\n",
       "2012-05-01 -4.520976 -3.349127  3.510598   5.711157  2.837665\n",
       "2012-06-01 -3.258616 -6.908536 -8.095486  -6.916951 -1.247031\n",
       "2012-07-01 -3.157178 -6.538390 -9.665753 -10.915688 -6.323546\n",
       "2012-08-01 -0.502221  0.248084 -2.623755  -4.505772 -0.088047\n",
       "...              ...       ...       ...        ...       ...\n",
       "2019-08-01 -3.050253 -1.763514 -3.133919  -1.331471  3.898158\n",
       "2019-09-01  1.280084  0.646390  1.338526   1.544086  0.426663\n",
       "2019-10-01 -1.341725 -0.525789 -1.881486   0.562814  1.224310\n",
       "2019-11-01 -1.780620 -2.712882 -0.582692  -0.190713 -0.482239\n",
       "2019-12-01  7.252284  8.177301  7.134126   8.674617  7.618972\n",
       "\n",
       "[93 rows x 5 columns]"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "portfolio_ins = portfolio_ins.pivot_table(index='month',columns='sort',values='r')\n",
    "portfolio_ins"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "问题二结果："
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th>sort</th>\n",
       "      <th>P1</th>\n",
       "      <th>P2</th>\n",
       "      <th>P3</th>\n",
       "      <th>P4</th>\n",
       "      <th>P5</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>month</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2012-06-30</th>\n",
       "      <td>-0.053580</td>\n",
       "      <td>-0.083157</td>\n",
       "      <td>0.029664</td>\n",
       "      <td>0.020007</td>\n",
       "      <td>0.036270</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-09-30</th>\n",
       "      <td>-0.024654</td>\n",
       "      <td>-0.062179</td>\n",
       "      <td>-0.119337</td>\n",
       "      <td>-0.133776</td>\n",
       "      <td>-0.032449</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-31</th>\n",
       "      <td>0.021426</td>\n",
       "      <td>0.107086</td>\n",
       "      <td>0.019339</td>\n",
       "      <td>0.042229</td>\n",
       "      <td>0.017571</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2013-03-31</th>\n",
       "      <td>-0.036675</td>\n",
       "      <td>0.076397</td>\n",
       "      <td>-0.032732</td>\n",
       "      <td>0.014788</td>\n",
       "      <td>0.159496</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2013-06-30</th>\n",
       "      <td>-0.113567</td>\n",
       "      <td>-0.192079</td>\n",
       "      <td>-0.124539</td>\n",
       "      <td>-0.066298</td>\n",
       "      <td>0.031707</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2013-09-30</th>\n",
       "      <td>0.062847</td>\n",
       "      <td>0.149136</td>\n",
       "      <td>0.187230</td>\n",
       "      <td>0.174260</td>\n",
       "      <td>0.152887</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2013-12-31</th>\n",
       "      <td>-0.017966</td>\n",
       "      <td>-0.008448</td>\n",
       "      <td>0.013412</td>\n",
       "      <td>-0.034734</td>\n",
       "      <td>-0.029258</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2014-03-31</th>\n",
       "      <td>0.060463</td>\n",
       "      <td>0.019681</td>\n",
       "      <td>-0.021643</td>\n",
       "      <td>-0.009892</td>\n",
       "      <td>-0.087653</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2014-06-30</th>\n",
       "      <td>0.012659</td>\n",
       "      <td>0.041643</td>\n",
       "      <td>0.024705</td>\n",
       "      <td>0.048623</td>\n",
       "      <td>0.040886</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2014-09-30</th>\n",
       "      <td>0.097071</td>\n",
       "      <td>0.166928</td>\n",
       "      <td>0.222327</td>\n",
       "      <td>0.196056</td>\n",
       "      <td>0.116946</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2014-12-31</th>\n",
       "      <td>0.296674</td>\n",
       "      <td>0.035233</td>\n",
       "      <td>0.126799</td>\n",
       "      <td>0.008830</td>\n",
       "      <td>0.029305</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-03-31</th>\n",
       "      <td>0.137249</td>\n",
       "      <td>0.177654</td>\n",
       "      <td>0.378739</td>\n",
       "      <td>0.378439</td>\n",
       "      <td>0.391911</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-06-30</th>\n",
       "      <td>0.106832</td>\n",
       "      <td>0.364578</td>\n",
       "      <td>0.131144</td>\n",
       "      <td>0.156199</td>\n",
       "      <td>0.229285</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-09-30</th>\n",
       "      <td>-0.300110</td>\n",
       "      <td>-0.313830</td>\n",
       "      <td>-0.330799</td>\n",
       "      <td>-0.295468</td>\n",
       "      <td>-0.345404</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-12-31</th>\n",
       "      <td>0.120445</td>\n",
       "      <td>0.249413</td>\n",
       "      <td>0.338004</td>\n",
       "      <td>0.281707</td>\n",
       "      <td>0.320861</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-03-31</th>\n",
       "      <td>-0.124211</td>\n",
       "      <td>-0.203705</td>\n",
       "      <td>-0.182940</td>\n",
       "      <td>-0.167214</td>\n",
       "      <td>-0.204607</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-06-30</th>\n",
       "      <td>-0.040638</td>\n",
       "      <td>0.007333</td>\n",
       "      <td>0.036462</td>\n",
       "      <td>0.074503</td>\n",
       "      <td>0.030508</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-09-30</th>\n",
       "      <td>0.008298</td>\n",
       "      <td>0.033244</td>\n",
       "      <td>0.010448</td>\n",
       "      <td>0.016097</td>\n",
       "      <td>0.011323</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-12-31</th>\n",
       "      <td>0.074015</td>\n",
       "      <td>0.052835</td>\n",
       "      <td>-0.008875</td>\n",
       "      <td>-0.013985</td>\n",
       "      <td>-0.059109</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-03-31</th>\n",
       "      <td>-0.007902</td>\n",
       "      <td>0.024300</td>\n",
       "      <td>0.049353</td>\n",
       "      <td>0.065209</td>\n",
       "      <td>0.051055</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-06-30</th>\n",
       "      <td>-0.056817</td>\n",
       "      <td>-0.058157</td>\n",
       "      <td>0.015401</td>\n",
       "      <td>0.054312</td>\n",
       "      <td>0.051943</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-09-30</th>\n",
       "      <td>0.040394</td>\n",
       "      <td>0.039128</td>\n",
       "      <td>0.054542</td>\n",
       "      <td>0.049814</td>\n",
       "      <td>0.054537</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-12-31</th>\n",
       "      <td>-0.026667</td>\n",
       "      <td>-0.081975</td>\n",
       "      <td>-0.048709</td>\n",
       "      <td>0.019387</td>\n",
       "      <td>0.040055</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-31</th>\n",
       "      <td>-0.044585</td>\n",
       "      <td>-0.056989</td>\n",
       "      <td>-0.000245</td>\n",
       "      <td>-0.005109</td>\n",
       "      <td>-0.009216</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-30</th>\n",
       "      <td>-0.166993</td>\n",
       "      <td>-0.090361</td>\n",
       "      <td>-0.094219</td>\n",
       "      <td>-0.109650</td>\n",
       "      <td>-0.084185</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-09-30</th>\n",
       "      <td>-0.084066</td>\n",
       "      <td>0.074344</td>\n",
       "      <td>0.008939</td>\n",
       "      <td>-0.084500</td>\n",
       "      <td>-0.110133</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-12-31</th>\n",
       "      <td>-0.059680</td>\n",
       "      <td>-0.154292</td>\n",
       "      <td>-0.173856</td>\n",
       "      <td>-0.107202</td>\n",
       "      <td>-0.139741</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-03-31</th>\n",
       "      <td>0.308495</td>\n",
       "      <td>0.355765</td>\n",
       "      <td>0.195878</td>\n",
       "      <td>0.318333</td>\n",
       "      <td>0.307376</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-06-30</th>\n",
       "      <td>-0.120246</td>\n",
       "      <td>-0.101509</td>\n",
       "      <td>-0.078486</td>\n",
       "      <td>-0.094926</td>\n",
       "      <td>-0.026272</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-09-30</th>\n",
       "      <td>-0.054807</td>\n",
       "      <td>-0.045039</td>\n",
       "      <td>-0.037033</td>\n",
       "      <td>0.010748</td>\n",
       "      <td>0.060426</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-12-31</th>\n",
       "      <td>0.039291</td>\n",
       "      <td>0.046892</td>\n",
       "      <td>0.045059</td>\n",
       "      <td>0.090778</td>\n",
       "      <td>0.084112</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "sort              P1        P2        P3        P4        P5\n",
       "month                                                       \n",
       "2012-06-30 -0.053580 -0.083157  0.029664  0.020007  0.036270\n",
       "2012-09-30 -0.024654 -0.062179 -0.119337 -0.133776 -0.032449\n",
       "2012-12-31  0.021426  0.107086  0.019339  0.042229  0.017571\n",
       "2013-03-31 -0.036675  0.076397 -0.032732  0.014788  0.159496\n",
       "2013-06-30 -0.113567 -0.192079 -0.124539 -0.066298  0.031707\n",
       "2013-09-30  0.062847  0.149136  0.187230  0.174260  0.152887\n",
       "2013-12-31 -0.017966 -0.008448  0.013412 -0.034734 -0.029258\n",
       "2014-03-31  0.060463  0.019681 -0.021643 -0.009892 -0.087653\n",
       "2014-06-30  0.012659  0.041643  0.024705  0.048623  0.040886\n",
       "2014-09-30  0.097071  0.166928  0.222327  0.196056  0.116946\n",
       "2014-12-31  0.296674  0.035233  0.126799  0.008830  0.029305\n",
       "2015-03-31  0.137249  0.177654  0.378739  0.378439  0.391911\n",
       "2015-06-30  0.106832  0.364578  0.131144  0.156199  0.229285\n",
       "2015-09-30 -0.300110 -0.313830 -0.330799 -0.295468 -0.345404\n",
       "2015-12-31  0.120445  0.249413  0.338004  0.281707  0.320861\n",
       "2016-03-31 -0.124211 -0.203705 -0.182940 -0.167214 -0.204607\n",
       "2016-06-30 -0.040638  0.007333  0.036462  0.074503  0.030508\n",
       "2016-09-30  0.008298  0.033244  0.010448  0.016097  0.011323\n",
       "2016-12-31  0.074015  0.052835 -0.008875 -0.013985 -0.059109\n",
       "2017-03-31 -0.007902  0.024300  0.049353  0.065209  0.051055\n",
       "2017-06-30 -0.056817 -0.058157  0.015401  0.054312  0.051943\n",
       "2017-09-30  0.040394  0.039128  0.054542  0.049814  0.054537\n",
       "2017-12-31 -0.026667 -0.081975 -0.048709  0.019387  0.040055\n",
       "2018-03-31 -0.044585 -0.056989 -0.000245 -0.005109 -0.009216\n",
       "2018-06-30 -0.166993 -0.090361 -0.094219 -0.109650 -0.084185\n",
       "2018-09-30 -0.084066  0.074344  0.008939 -0.084500 -0.110133\n",
       "2018-12-31 -0.059680 -0.154292 -0.173856 -0.107202 -0.139741\n",
       "2019-03-31  0.308495  0.355765  0.195878  0.318333  0.307376\n",
       "2019-06-30 -0.120246 -0.101509 -0.078486 -0.094926 -0.026272\n",
       "2019-09-30 -0.054807 -0.045039 -0.037033  0.010748  0.060426\n",
       "2019-12-31  0.039291  0.046892  0.045059  0.090778  0.084112"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "Quarterly_data = portfolio_ins.resample('QE').apply(lambda x: (1+x/100).prod() - 1)\n",
    "Quarterly_data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [],
   "source": [
    "Quarterly_data['P1price'] = (1 + Quarterly_data['P1']).cumprod()\n",
    "Quarterly_data['P2price'] = (1 + Quarterly_data['P2']).cumprod()\n",
    "Quarterly_data['P3price'] = (1 + Quarterly_data['P3']).cumprod()\n",
    "Quarterly_data['P4price'] = (1 + Quarterly_data['P4']).cumprod()\n",
    "Quarterly_data['P5price'] = (1 + Quarterly_data['P5']).cumprod()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th>sort</th>\n",
       "      <th>P1price</th>\n",
       "      <th>P2price</th>\n",
       "      <th>P3price</th>\n",
       "      <th>P4price</th>\n",
       "      <th>P5price</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>month</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2012-06-30</th>\n",
       "      <td>0.946420</td>\n",
       "      <td>0.916843</td>\n",
       "      <td>1.029664</td>\n",
       "      <td>1.020007</td>\n",
       "      <td>1.036270</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-09-30</th>\n",
       "      <td>0.923087</td>\n",
       "      <td>0.859835</td>\n",
       "      <td>0.906787</td>\n",
       "      <td>0.883555</td>\n",
       "      <td>1.002644</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-31</th>\n",
       "      <td>0.942866</td>\n",
       "      <td>0.951911</td>\n",
       "      <td>0.924323</td>\n",
       "      <td>0.920867</td>\n",
       "      <td>1.020261</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2013-03-31</th>\n",
       "      <td>0.908286</td>\n",
       "      <td>1.024634</td>\n",
       "      <td>0.894068</td>\n",
       "      <td>0.934485</td>\n",
       "      <td>1.182988</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2013-06-30</th>\n",
       "      <td>0.805134</td>\n",
       "      <td>0.827824</td>\n",
       "      <td>0.782722</td>\n",
       "      <td>0.872531</td>\n",
       "      <td>1.220498</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2013-09-30</th>\n",
       "      <td>0.855735</td>\n",
       "      <td>0.951282</td>\n",
       "      <td>0.929271</td>\n",
       "      <td>1.024579</td>\n",
       "      <td>1.407096</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2013-12-31</th>\n",
       "      <td>0.840360</td>\n",
       "      <td>0.943245</td>\n",
       "      <td>0.941735</td>\n",
       "      <td>0.988991</td>\n",
       "      <td>1.365927</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2014-03-31</th>\n",
       "      <td>0.891171</td>\n",
       "      <td>0.961808</td>\n",
       "      <td>0.921353</td>\n",
       "      <td>0.979208</td>\n",
       "      <td>1.246199</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2014-06-30</th>\n",
       "      <td>0.902452</td>\n",
       "      <td>1.001861</td>\n",
       "      <td>0.944116</td>\n",
       "      <td>1.026820</td>\n",
       "      <td>1.297151</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2014-09-30</th>\n",
       "      <td>0.990054</td>\n",
       "      <td>1.169100</td>\n",
       "      <td>1.154018</td>\n",
       "      <td>1.228134</td>\n",
       "      <td>1.448847</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2014-12-31</th>\n",
       "      <td>1.283776</td>\n",
       "      <td>1.210291</td>\n",
       "      <td>1.300347</td>\n",
       "      <td>1.238978</td>\n",
       "      <td>1.491307</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-03-31</th>\n",
       "      <td>1.459973</td>\n",
       "      <td>1.425304</td>\n",
       "      <td>1.792839</td>\n",
       "      <td>1.707855</td>\n",
       "      <td>2.075766</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-06-30</th>\n",
       "      <td>1.615945</td>\n",
       "      <td>1.944939</td>\n",
       "      <td>2.027958</td>\n",
       "      <td>1.974621</td>\n",
       "      <td>2.551709</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-09-30</th>\n",
       "      <td>1.130984</td>\n",
       "      <td>1.334559</td>\n",
       "      <td>1.357113</td>\n",
       "      <td>1.391184</td>\n",
       "      <td>1.670339</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2015-12-31</th>\n",
       "      <td>1.267206</td>\n",
       "      <td>1.667416</td>\n",
       "      <td>1.815823</td>\n",
       "      <td>1.783091</td>\n",
       "      <td>2.206286</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-03-31</th>\n",
       "      <td>1.109804</td>\n",
       "      <td>1.327754</td>\n",
       "      <td>1.483637</td>\n",
       "      <td>1.484934</td>\n",
       "      <td>1.754865</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-06-30</th>\n",
       "      <td>1.064704</td>\n",
       "      <td>1.337490</td>\n",
       "      <td>1.537732</td>\n",
       "      <td>1.595566</td>\n",
       "      <td>1.808402</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-09-30</th>\n",
       "      <td>1.073540</td>\n",
       "      <td>1.381954</td>\n",
       "      <td>1.553798</td>\n",
       "      <td>1.621251</td>\n",
       "      <td>1.828878</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-12-31</th>\n",
       "      <td>1.152997</td>\n",
       "      <td>1.454969</td>\n",
       "      <td>1.540009</td>\n",
       "      <td>1.598578</td>\n",
       "      <td>1.720776</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-03-31</th>\n",
       "      <td>1.143887</td>\n",
       "      <td>1.490325</td>\n",
       "      <td>1.616012</td>\n",
       "      <td>1.702819</td>\n",
       "      <td>1.808631</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-06-30</th>\n",
       "      <td>1.078894</td>\n",
       "      <td>1.403653</td>\n",
       "      <td>1.640899</td>\n",
       "      <td>1.795303</td>\n",
       "      <td>1.902576</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-09-30</th>\n",
       "      <td>1.122475</td>\n",
       "      <td>1.458575</td>\n",
       "      <td>1.730398</td>\n",
       "      <td>1.884735</td>\n",
       "      <td>2.006337</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-12-31</th>\n",
       "      <td>1.092542</td>\n",
       "      <td>1.339008</td>\n",
       "      <td>1.646112</td>\n",
       "      <td>1.921274</td>\n",
       "      <td>2.086700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-31</th>\n",
       "      <td>1.043830</td>\n",
       "      <td>1.262700</td>\n",
       "      <td>1.645708</td>\n",
       "      <td>1.911458</td>\n",
       "      <td>2.067469</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-30</th>\n",
       "      <td>0.869518</td>\n",
       "      <td>1.148600</td>\n",
       "      <td>1.490651</td>\n",
       "      <td>1.701866</td>\n",
       "      <td>1.893419</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-09-30</th>\n",
       "      <td>0.796421</td>\n",
       "      <td>1.233992</td>\n",
       "      <td>1.503975</td>\n",
       "      <td>1.558059</td>\n",
       "      <td>1.684891</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-12-31</th>\n",
       "      <td>0.748891</td>\n",
       "      <td>1.043597</td>\n",
       "      <td>1.242500</td>\n",
       "      <td>1.391031</td>\n",
       "      <td>1.449442</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-03-31</th>\n",
       "      <td>0.979921</td>\n",
       "      <td>1.414871</td>\n",
       "      <td>1.485878</td>\n",
       "      <td>1.833842</td>\n",
       "      <td>1.894966</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-06-30</th>\n",
       "      <td>0.862089</td>\n",
       "      <td>1.271249</td>\n",
       "      <td>1.369258</td>\n",
       "      <td>1.659762</td>\n",
       "      <td>1.845181</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-09-30</th>\n",
       "      <td>0.814840</td>\n",
       "      <td>1.213994</td>\n",
       "      <td>1.318551</td>\n",
       "      <td>1.677601</td>\n",
       "      <td>1.956678</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-12-31</th>\n",
       "      <td>0.846856</td>\n",
       "      <td>1.270920</td>\n",
       "      <td>1.377963</td>\n",
       "      <td>1.829890</td>\n",
       "      <td>2.121258</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "sort         P1price   P2price   P3price   P4price   P5price\n",
       "month                                                       \n",
       "2012-06-30  0.946420  0.916843  1.029664  1.020007  1.036270\n",
       "2012-09-30  0.923087  0.859835  0.906787  0.883555  1.002644\n",
       "2012-12-31  0.942866  0.951911  0.924323  0.920867  1.020261\n",
       "2013-03-31  0.908286  1.024634  0.894068  0.934485  1.182988\n",
       "2013-06-30  0.805134  0.827824  0.782722  0.872531  1.220498\n",
       "2013-09-30  0.855735  0.951282  0.929271  1.024579  1.407096\n",
       "2013-12-31  0.840360  0.943245  0.941735  0.988991  1.365927\n",
       "2014-03-31  0.891171  0.961808  0.921353  0.979208  1.246199\n",
       "2014-06-30  0.902452  1.001861  0.944116  1.026820  1.297151\n",
       "2014-09-30  0.990054  1.169100  1.154018  1.228134  1.448847\n",
       "2014-12-31  1.283776  1.210291  1.300347  1.238978  1.491307\n",
       "2015-03-31  1.459973  1.425304  1.792839  1.707855  2.075766\n",
       "2015-06-30  1.615945  1.944939  2.027958  1.974621  2.551709\n",
       "2015-09-30  1.130984  1.334559  1.357113  1.391184  1.670339\n",
       "2015-12-31  1.267206  1.667416  1.815823  1.783091  2.206286\n",
       "2016-03-31  1.109804  1.327754  1.483637  1.484934  1.754865\n",
       "2016-06-30  1.064704  1.337490  1.537732  1.595566  1.808402\n",
       "2016-09-30  1.073540  1.381954  1.553798  1.621251  1.828878\n",
       "2016-12-31  1.152997  1.454969  1.540009  1.598578  1.720776\n",
       "2017-03-31  1.143887  1.490325  1.616012  1.702819  1.808631\n",
       "2017-06-30  1.078894  1.403653  1.640899  1.795303  1.902576\n",
       "2017-09-30  1.122475  1.458575  1.730398  1.884735  2.006337\n",
       "2017-12-31  1.092542  1.339008  1.646112  1.921274  2.086700\n",
       "2018-03-31  1.043830  1.262700  1.645708  1.911458  2.067469\n",
       "2018-06-30  0.869518  1.148600  1.490651  1.701866  1.893419\n",
       "2018-09-30  0.796421  1.233992  1.503975  1.558059  1.684891\n",
       "2018-12-31  0.748891  1.043597  1.242500  1.391031  1.449442\n",
       "2019-03-31  0.979921  1.414871  1.485878  1.833842  1.894966\n",
       "2019-06-30  0.862089  1.271249  1.369258  1.659762  1.845181\n",
       "2019-09-30  0.814840  1.213994  1.318551  1.677601  1.956678\n",
       "2019-12-31  0.846856  1.270920  1.377963  1.829890  2.121258"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "INS = Quarterly_data.iloc[:, -5:]\n",
    "INS"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
       "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"726.94375pt\" height=\"392.514375pt\" viewBox=\"0 0 726.94375 392.514375\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">\n",
       " <metadata>\n",
       "  <rdf:RDF xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n",
       "   <cc:Work>\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\n",
       "    <dc:date>2024-12-19T16:21:10.571220</dc:date>\n",
       "    <dc:format>image/svg+xml</dc:format>\n",
       "    <dc:creator>\n",
       "     <cc:Agent>\n",
       "      <dc:title>Matplotlib v3.5.2, https://matplotlib.org/</dc:title>\n",
       "     </cc:Agent>\n",
       "    </dc:creator>\n",
       "   </cc:Work>\n",
       "  </rdf:RDF>\n",
       " </metadata>\n",
       " <defs>\n",
       "  <style type=\"text/css\">*{stroke-linejoin: round; stroke-linecap: butt}</style>\n",
       " </defs>\n",
       " <g id=\"figure_1\">\n",
       "  <g id=\"patch_1\">\n",
       "   <path d=\"M 0 392.514375 \n",
       "L 726.94375 392.514375 \n",
       "L 726.94375 0 \n",
       "L 0 0 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "  </g>\n",
       "  <g id=\"axes_1\">\n",
       "   <g id=\"patch_2\">\n",
       "    <path d=\"M 50.14375 354.958125 \n",
       "L 719.74375 354.958125 \n",
       "L 719.74375 22.318125 \n",
       "L 50.14375 22.318125 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_1\">\n",
       "    <g id=\"xtick_1\">\n",
       "     <g id=\"line2d_1\">\n",
       "      <path d=\"M 121.680313 354.958125 \n",
       "L 121.680313 22.318125 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_2\">\n",
       "      <defs>\n",
       "       <path id=\"m781d42f774\" d=\"M 0 0 \n",
       "L 0 3.5 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m781d42f774\" x=\"121.680313\" y=\"354.958125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_1\">\n",
       "      <!-- 2013 -->\n",
       "      <g transform=\"translate(108.955313 369.556562)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-32\" d=\"M 1228 531 \n",
       "L 3431 531 \n",
       "L 3431 0 \n",
       "L 469 0 \n",
       "L 469 531 \n",
       "Q 828 903 1448 1529 \n",
       "Q 2069 2156 2228 2338 \n",
       "Q 2531 2678 2651 2914 \n",
       "Q 2772 3150 2772 3378 \n",
       "Q 2772 3750 2511 3984 \n",
       "Q 2250 4219 1831 4219 \n",
       "Q 1534 4219 1204 4116 \n",
       "Q 875 4013 500 3803 \n",
       "L 500 4441 \n",
       "Q 881 4594 1212 4672 \n",
       "Q 1544 4750 1819 4750 \n",
       "Q 2544 4750 2975 4387 \n",
       "Q 3406 4025 3406 3419 \n",
       "Q 3406 3131 3298 2873 \n",
       "Q 3191 2616 2906 2266 \n",
       "Q 2828 2175 2409 1742 \n",
       "Q 1991 1309 1228 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-30\" d=\"M 2034 4250 \n",
       "Q 1547 4250 1301 3770 \n",
       "Q 1056 3291 1056 2328 \n",
       "Q 1056 1369 1301 889 \n",
       "Q 1547 409 2034 409 \n",
       "Q 2525 409 2770 889 \n",
       "Q 3016 1369 3016 2328 \n",
       "Q 3016 3291 2770 3770 \n",
       "Q 2525 4250 2034 4250 \n",
       "z\n",
       "M 2034 4750 \n",
       "Q 2819 4750 3233 4129 \n",
       "Q 3647 3509 3647 2328 \n",
       "Q 3647 1150 3233 529 \n",
       "Q 2819 -91 2034 -91 \n",
       "Q 1250 -91 836 529 \n",
       "Q 422 1150 422 2328 \n",
       "Q 422 3509 836 4129 \n",
       "Q 1250 4750 2034 4750 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-31\" d=\"M 794 531 \n",
       "L 1825 531 \n",
       "L 1825 4091 \n",
       "L 703 3866 \n",
       "L 703 4441 \n",
       "L 1819 4666 \n",
       "L 2450 4666 \n",
       "L 2450 531 \n",
       "L 3481 531 \n",
       "L 3481 0 \n",
       "L 794 0 \n",
       "L 794 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-33\" d=\"M 2597 2516 \n",
       "Q 3050 2419 3304 2112 \n",
       "Q 3559 1806 3559 1356 \n",
       "Q 3559 666 3084 287 \n",
       "Q 2609 -91 1734 -91 \n",
       "Q 1441 -91 1130 -33 \n",
       "Q 819 25 488 141 \n",
       "L 488 750 \n",
       "Q 750 597 1062 519 \n",
       "Q 1375 441 1716 441 \n",
       "Q 2309 441 2620 675 \n",
       "Q 2931 909 2931 1356 \n",
       "Q 2931 1769 2642 2001 \n",
       "Q 2353 2234 1838 2234 \n",
       "L 1294 2234 \n",
       "L 1294 2753 \n",
       "L 1863 2753 \n",
       "Q 2328 2753 2575 2939 \n",
       "Q 2822 3125 2822 3475 \n",
       "Q 2822 3834 2567 4026 \n",
       "Q 2313 4219 1838 4219 \n",
       "Q 1578 4219 1281 4162 \n",
       "Q 984 4106 628 3988 \n",
       "L 628 4550 \n",
       "Q 988 4650 1302 4700 \n",
       "Q 1616 4750 1894 4750 \n",
       "Q 2613 4750 3031 4423 \n",
       "Q 3450 4097 3450 3541 \n",
       "Q 3450 3153 3228 2886 \n",
       "Q 3006 2619 2597 2516 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-33\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_2\">\n",
       "     <g id=\"line2d_3\">\n",
       "      <path d=\"M 202.769895 354.958125 \n",
       "L 202.769895 22.318125 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_4\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m781d42f774\" x=\"202.769895\" y=\"354.958125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_2\">\n",
       "      <!-- 2014 -->\n",
       "      <g transform=\"translate(190.044895 369.556562)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-34\" d=\"M 2419 4116 \n",
       "L 825 1625 \n",
       "L 2419 1625 \n",
       "L 2419 4116 \n",
       "z\n",
       "M 2253 4666 \n",
       "L 3047 4666 \n",
       "L 3047 1625 \n",
       "L 3713 1625 \n",
       "L 3713 1100 \n",
       "L 3047 1100 \n",
       "L 3047 0 \n",
       "L 2419 0 \n",
       "L 2419 1100 \n",
       "L 313 1100 \n",
       "L 313 1709 \n",
       "L 2253 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-34\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_3\">\n",
       "     <g id=\"line2d_5\">\n",
       "      <path d=\"M 283.859477 354.958125 \n",
       "L 283.859477 22.318125 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_6\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m781d42f774\" x=\"283.859477\" y=\"354.958125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_3\">\n",
       "      <!-- 2015 -->\n",
       "      <g transform=\"translate(271.134477 369.556562)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-35\" d=\"M 691 4666 \n",
       "L 3169 4666 \n",
       "L 3169 4134 \n",
       "L 1269 4134 \n",
       "L 1269 2991 \n",
       "Q 1406 3038 1543 3061 \n",
       "Q 1681 3084 1819 3084 \n",
       "Q 2600 3084 3056 2656 \n",
       "Q 3513 2228 3513 1497 \n",
       "Q 3513 744 3044 326 \n",
       "Q 2575 -91 1722 -91 \n",
       "Q 1428 -91 1123 -41 \n",
       "Q 819 9 494 109 \n",
       "L 494 744 \n",
       "Q 775 591 1075 516 \n",
       "Q 1375 441 1709 441 \n",
       "Q 2250 441 2565 725 \n",
       "Q 2881 1009 2881 1497 \n",
       "Q 2881 1984 2565 2268 \n",
       "Q 2250 2553 1709 2553 \n",
       "Q 1456 2553 1204 2497 \n",
       "Q 953 2441 691 2322 \n",
       "L 691 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_4\">\n",
       "     <g id=\"line2d_7\">\n",
       "      <path d=\"M 364.949059 354.958125 \n",
       "L 364.949059 22.318125 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_8\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m781d42f774\" x=\"364.949059\" y=\"354.958125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_4\">\n",
       "      <!-- 2016 -->\n",
       "      <g transform=\"translate(352.224059 369.556562)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-36\" d=\"M 2113 2584 \n",
       "Q 1688 2584 1439 2293 \n",
       "Q 1191 2003 1191 1497 \n",
       "Q 1191 994 1439 701 \n",
       "Q 1688 409 2113 409 \n",
       "Q 2538 409 2786 701 \n",
       "Q 3034 994 3034 1497 \n",
       "Q 3034 2003 2786 2293 \n",
       "Q 2538 2584 2113 2584 \n",
       "z\n",
       "M 3366 4563 \n",
       "L 3366 3988 \n",
       "Q 3128 4100 2886 4159 \n",
       "Q 2644 4219 2406 4219 \n",
       "Q 1781 4219 1451 3797 \n",
       "Q 1122 3375 1075 2522 \n",
       "Q 1259 2794 1537 2939 \n",
       "Q 1816 3084 2150 3084 \n",
       "Q 2853 3084 3261 2657 \n",
       "Q 3669 2231 3669 1497 \n",
       "Q 3669 778 3244 343 \n",
       "Q 2819 -91 2113 -91 \n",
       "Q 1303 -91 875 529 \n",
       "Q 447 1150 447 2328 \n",
       "Q 447 3434 972 4092 \n",
       "Q 1497 4750 2381 4750 \n",
       "Q 2619 4750 2861 4703 \n",
       "Q 3103 4656 3366 4563 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-36\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_5\">\n",
       "     <g id=\"line2d_9\">\n",
       "      <path d=\"M 446.260804 354.958125 \n",
       "L 446.260804 22.318125 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_10\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m781d42f774\" x=\"446.260804\" y=\"354.958125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_5\">\n",
       "      <!-- 2017 -->\n",
       "      <g transform=\"translate(433.535804 369.556562)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-37\" d=\"M 525 4666 \n",
       "L 3525 4666 \n",
       "L 3525 4397 \n",
       "L 1831 0 \n",
       "L 1172 0 \n",
       "L 2766 4134 \n",
       "L 525 4134 \n",
       "L 525 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-37\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_6\">\n",
       "     <g id=\"line2d_11\">\n",
       "      <path d=\"M 527.350386 354.958125 \n",
       "L 527.350386 22.318125 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_12\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m781d42f774\" x=\"527.350386\" y=\"354.958125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_6\">\n",
       "      <!-- 2018 -->\n",
       "      <g transform=\"translate(514.625386 369.556562)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-38\" d=\"M 2034 2216 \n",
       "Q 1584 2216 1326 1975 \n",
       "Q 1069 1734 1069 1313 \n",
       "Q 1069 891 1326 650 \n",
       "Q 1584 409 2034 409 \n",
       "Q 2484 409 2743 651 \n",
       "Q 3003 894 3003 1313 \n",
       "Q 3003 1734 2745 1975 \n",
       "Q 2488 2216 2034 2216 \n",
       "z\n",
       "M 1403 2484 \n",
       "Q 997 2584 770 2862 \n",
       "Q 544 3141 544 3541 \n",
       "Q 544 4100 942 4425 \n",
       "Q 1341 4750 2034 4750 \n",
       "Q 2731 4750 3128 4425 \n",
       "Q 3525 4100 3525 3541 \n",
       "Q 3525 3141 3298 2862 \n",
       "Q 3072 2584 2669 2484 \n",
       "Q 3125 2378 3379 2068 \n",
       "Q 3634 1759 3634 1313 \n",
       "Q 3634 634 3220 271 \n",
       "Q 2806 -91 2034 -91 \n",
       "Q 1263 -91 848 271 \n",
       "Q 434 634 434 1313 \n",
       "Q 434 1759 690 2068 \n",
       "Q 947 2378 1403 2484 \n",
       "z\n",
       "M 1172 3481 \n",
       "Q 1172 3119 1398 2916 \n",
       "Q 1625 2713 2034 2713 \n",
       "Q 2441 2713 2670 2916 \n",
       "Q 2900 3119 2900 3481 \n",
       "Q 2900 3844 2670 4047 \n",
       "Q 2441 4250 2034 4250 \n",
       "Q 1625 4250 1398 4047 \n",
       "Q 1172 3844 1172 3481 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-38\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_7\">\n",
       "     <g id=\"line2d_13\">\n",
       "      <path d=\"M 608.439968 354.958125 \n",
       "L 608.439968 22.318125 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_14\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m781d42f774\" x=\"608.439968\" y=\"354.958125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_7\">\n",
       "      <!-- 2019 -->\n",
       "      <g transform=\"translate(595.714968 369.556562)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-39\" d=\"M 703 97 \n",
       "L 703 672 \n",
       "Q 941 559 1184 500 \n",
       "Q 1428 441 1663 441 \n",
       "Q 2288 441 2617 861 \n",
       "Q 2947 1281 2994 2138 \n",
       "Q 2813 1869 2534 1725 \n",
       "Q 2256 1581 1919 1581 \n",
       "Q 1219 1581 811 2004 \n",
       "Q 403 2428 403 3163 \n",
       "Q 403 3881 828 4315 \n",
       "Q 1253 4750 1959 4750 \n",
       "Q 2769 4750 3195 4129 \n",
       "Q 3622 3509 3622 2328 \n",
       "Q 3622 1225 3098 567 \n",
       "Q 2575 -91 1691 -91 \n",
       "Q 1453 -91 1209 -44 \n",
       "Q 966 3 703 97 \n",
       "z\n",
       "M 1959 2075 \n",
       "Q 2384 2075 2632 2365 \n",
       "Q 2881 2656 2881 3163 \n",
       "Q 2881 3666 2632 3958 \n",
       "Q 2384 4250 1959 4250 \n",
       "Q 1534 4250 1286 3958 \n",
       "Q 1038 3666 1038 3163 \n",
       "Q 1038 2656 1286 2365 \n",
       "Q 1534 2075 1959 2075 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-39\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_8\">\n",
       "     <g id=\"line2d_15\">\n",
       "      <path d=\"M 689.52955 354.958125 \n",
       "L 689.52955 22.318125 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_16\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m781d42f774\" x=\"689.52955\" y=\"354.958125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_8\">\n",
       "      <!-- 2020 -->\n",
       "      <g transform=\"translate(676.80455 369.556562)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_9\">\n",
       "     <!-- Date -->\n",
       "     <g transform=\"translate(372.992969 383.234687)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-44\" d=\"M 1259 4147 \n",
       "L 1259 519 \n",
       "L 2022 519 \n",
       "Q 2988 519 3436 956 \n",
       "Q 3884 1394 3884 2338 \n",
       "Q 3884 3275 3436 3711 \n",
       "Q 2988 4147 2022 4147 \n",
       "L 1259 4147 \n",
       "z\n",
       "M 628 4666 \n",
       "L 1925 4666 \n",
       "Q 3281 4666 3915 4102 \n",
       "Q 4550 3538 4550 2338 \n",
       "Q 4550 1131 3912 565 \n",
       "Q 3275 0 1925 0 \n",
       "L 628 0 \n",
       "L 628 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-61\" d=\"M 2194 1759 \n",
       "Q 1497 1759 1228 1600 \n",
       "Q 959 1441 959 1056 \n",
       "Q 959 750 1161 570 \n",
       "Q 1363 391 1709 391 \n",
       "Q 2188 391 2477 730 \n",
       "Q 2766 1069 2766 1631 \n",
       "L 2766 1759 \n",
       "L 2194 1759 \n",
       "z\n",
       "M 3341 1997 \n",
       "L 3341 0 \n",
       "L 2766 0 \n",
       "L 2766 531 \n",
       "Q 2569 213 2275 61 \n",
       "Q 1981 -91 1556 -91 \n",
       "Q 1019 -91 701 211 \n",
       "Q 384 513 384 1019 \n",
       "Q 384 1609 779 1909 \n",
       "Q 1175 2209 1959 2209 \n",
       "L 2766 2209 \n",
       "L 2766 2266 \n",
       "Q 2766 2663 2505 2880 \n",
       "Q 2244 3097 1772 3097 \n",
       "Q 1472 3097 1187 3025 \n",
       "Q 903 2953 641 2809 \n",
       "L 641 3341 \n",
       "Q 956 3463 1253 3523 \n",
       "Q 1550 3584 1831 3584 \n",
       "Q 2591 3584 2966 3190 \n",
       "Q 3341 2797 3341 1997 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-74\" d=\"M 1172 4494 \n",
       "L 1172 3500 \n",
       "L 2356 3500 \n",
       "L 2356 3053 \n",
       "L 1172 3053 \n",
       "L 1172 1153 \n",
       "Q 1172 725 1289 603 \n",
       "Q 1406 481 1766 481 \n",
       "L 2356 481 \n",
       "L 2356 0 \n",
       "L 1766 0 \n",
       "Q 1100 0 847 248 \n",
       "Q 594 497 594 1153 \n",
       "L 594 3053 \n",
       "L 172 3053 \n",
       "L 172 3500 \n",
       "L 594 3500 \n",
       "L 594 4494 \n",
       "L 1172 4494 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-65\" d=\"M 3597 1894 \n",
       "L 3597 1613 \n",
       "L 953 1613 \n",
       "Q 991 1019 1311 708 \n",
       "Q 1631 397 2203 397 \n",
       "Q 2534 397 2845 478 \n",
       "Q 3156 559 3463 722 \n",
       "L 3463 178 \n",
       "Q 3153 47 2828 -22 \n",
       "Q 2503 -91 2169 -91 \n",
       "Q 1331 -91 842 396 \n",
       "Q 353 884 353 1716 \n",
       "Q 353 2575 817 3079 \n",
       "Q 1281 3584 2069 3584 \n",
       "Q 2775 3584 3186 3129 \n",
       "Q 3597 2675 3597 1894 \n",
       "z\n",
       "M 3022 2063 \n",
       "Q 3016 2534 2758 2815 \n",
       "Q 2500 3097 2075 3097 \n",
       "Q 1594 3097 1305 2825 \n",
       "Q 1016 2553 972 2059 \n",
       "L 3022 2063 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-44\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"77.001953\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"138.28125\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"177.490234\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_2\">\n",
       "    <g id=\"ytick_1\">\n",
       "     <g id=\"line2d_17\">\n",
       "      <path d=\"M 50.14375 339.652158 \n",
       "L 719.74375 339.652158 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_18\">\n",
       "      <defs>\n",
       "       <path id=\"m0e9638a4e8\" d=\"M 0 0 \n",
       "L -3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0e9638a4e8\" x=\"50.14375\" y=\"339.652158\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_10\">\n",
       "      <!-- 0.75 -->\n",
       "      <g transform=\"translate(20.878125 343.451376)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-2e\" d=\"M 684 794 \n",
       "L 1344 794 \n",
       "L 1344 0 \n",
       "L 684 0 \n",
       "L 684 794 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-37\" x=\"95.410156\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"159.033203\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_19\">\n",
       "      <path d=\"M 50.14375 297.717808 \n",
       "L 719.74375 297.717808 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_20\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0e9638a4e8\" x=\"50.14375\" y=\"297.717808\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_11\">\n",
       "      <!-- 1.00 -->\n",
       "      <g transform=\"translate(20.878125 301.517027)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"159.033203\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_21\">\n",
       "      <path d=\"M 50.14375 255.783458 \n",
       "L 719.74375 255.783458 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_22\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0e9638a4e8\" x=\"50.14375\" y=\"255.783458\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_12\">\n",
       "      <!-- 1.25 -->\n",
       "      <g transform=\"translate(20.878125 259.582677)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"95.410156\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"159.033203\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_23\">\n",
       "      <path d=\"M 50.14375 213.849109 \n",
       "L 719.74375 213.849109 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_24\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0e9638a4e8\" x=\"50.14375\" y=\"213.849109\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_13\">\n",
       "      <!-- 1.50 -->\n",
       "      <g transform=\"translate(20.878125 217.648327)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"159.033203\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_5\">\n",
       "     <g id=\"line2d_25\">\n",
       "      <path d=\"M 50.14375 171.914759 \n",
       "L 719.74375 171.914759 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_26\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0e9638a4e8\" x=\"50.14375\" y=\"171.914759\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_14\">\n",
       "      <!-- 1.75 -->\n",
       "      <g transform=\"translate(20.878125 175.713978)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-37\" x=\"95.410156\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"159.033203\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_6\">\n",
       "     <g id=\"line2d_27\">\n",
       "      <path d=\"M 50.14375 129.98041 \n",
       "L 719.74375 129.98041 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_28\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0e9638a4e8\" x=\"50.14375\" y=\"129.98041\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_15\">\n",
       "      <!-- 2.00 -->\n",
       "      <g transform=\"translate(20.878125 133.779628)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"159.033203\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_7\">\n",
       "     <g id=\"line2d_29\">\n",
       "      <path d=\"M 50.14375 88.04606 \n",
       "L 719.74375 88.04606 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_30\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0e9638a4e8\" x=\"50.14375\" y=\"88.04606\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_16\">\n",
       "      <!-- 2.25 -->\n",
       "      <g transform=\"translate(20.878125 91.845279)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"95.410156\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"159.033203\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_8\">\n",
       "     <g id=\"line2d_31\">\n",
       "      <path d=\"M 50.14375 46.11171 \n",
       "L 719.74375 46.11171 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_32\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0e9638a4e8\" x=\"50.14375\" y=\"46.11171\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_17\">\n",
       "      <!-- 2.50 -->\n",
       "      <g transform=\"translate(20.878125 49.910929)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"159.033203\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_18\">\n",
       "     <!-- Cumulative Return -->\n",
       "     <g transform=\"translate(14.798438 235.356094)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-43\" d=\"M 4122 4306 \n",
       "L 4122 3641 \n",
       "Q 3803 3938 3442 4084 \n",
       "Q 3081 4231 2675 4231 \n",
       "Q 1875 4231 1450 3742 \n",
       "Q 1025 3253 1025 2328 \n",
       "Q 1025 1406 1450 917 \n",
       "Q 1875 428 2675 428 \n",
       "Q 3081 428 3442 575 \n",
       "Q 3803 722 4122 1019 \n",
       "L 4122 359 \n",
       "Q 3791 134 3420 21 \n",
       "Q 3050 -91 2638 -91 \n",
       "Q 1578 -91 968 557 \n",
       "Q 359 1206 359 2328 \n",
       "Q 359 3453 968 4101 \n",
       "Q 1578 4750 2638 4750 \n",
       "Q 3056 4750 3426 4639 \n",
       "Q 3797 4528 4122 4306 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-75\" d=\"M 544 1381 \n",
       "L 544 3500 \n",
       "L 1119 3500 \n",
       "L 1119 1403 \n",
       "Q 1119 906 1312 657 \n",
       "Q 1506 409 1894 409 \n",
       "Q 2359 409 2629 706 \n",
       "Q 2900 1003 2900 1516 \n",
       "L 2900 3500 \n",
       "L 3475 3500 \n",
       "L 3475 0 \n",
       "L 2900 0 \n",
       "L 2900 538 \n",
       "Q 2691 219 2414 64 \n",
       "Q 2138 -91 1772 -91 \n",
       "Q 1169 -91 856 284 \n",
       "Q 544 659 544 1381 \n",
       "z\n",
       "M 1991 3584 \n",
       "L 1991 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6d\" d=\"M 3328 2828 \n",
       "Q 3544 3216 3844 3400 \n",
       "Q 4144 3584 4550 3584 \n",
       "Q 5097 3584 5394 3201 \n",
       "Q 5691 2819 5691 2113 \n",
       "L 5691 0 \n",
       "L 5113 0 \n",
       "L 5113 2094 \n",
       "Q 5113 2597 4934 2840 \n",
       "Q 4756 3084 4391 3084 \n",
       "Q 3944 3084 3684 2787 \n",
       "Q 3425 2491 3425 1978 \n",
       "L 3425 0 \n",
       "L 2847 0 \n",
       "L 2847 2094 \n",
       "Q 2847 2600 2669 2842 \n",
       "Q 2491 3084 2119 3084 \n",
       "Q 1678 3084 1418 2786 \n",
       "Q 1159 2488 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1356 3278 1631 3431 \n",
       "Q 1906 3584 2284 3584 \n",
       "Q 2666 3584 2933 3390 \n",
       "Q 3200 3197 3328 2828 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6c\" d=\"M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-69\" d=\"M 603 3500 \n",
       "L 1178 3500 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 3500 \n",
       "z\n",
       "M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 4134 \n",
       "L 603 4134 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-76\" d=\"M 191 3500 \n",
       "L 800 3500 \n",
       "L 1894 563 \n",
       "L 2988 3500 \n",
       "L 3597 3500 \n",
       "L 2284 0 \n",
       "L 1503 0 \n",
       "L 191 3500 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-20\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-52\" d=\"M 2841 2188 \n",
       "Q 3044 2119 3236 1894 \n",
       "Q 3428 1669 3622 1275 \n",
       "L 4263 0 \n",
       "L 3584 0 \n",
       "L 2988 1197 \n",
       "Q 2756 1666 2539 1819 \n",
       "Q 2322 1972 1947 1972 \n",
       "L 1259 1972 \n",
       "L 1259 0 \n",
       "L 628 0 \n",
       "L 628 4666 \n",
       "L 2053 4666 \n",
       "Q 2853 4666 3247 4331 \n",
       "Q 3641 3997 3641 3322 \n",
       "Q 3641 2881 3436 2590 \n",
       "Q 3231 2300 2841 2188 \n",
       "z\n",
       "M 1259 4147 \n",
       "L 1259 2491 \n",
       "L 2053 2491 \n",
       "Q 2509 2491 2742 2702 \n",
       "Q 2975 2913 2975 3322 \n",
       "Q 2975 3731 2742 3939 \n",
       "Q 2509 4147 2053 4147 \n",
       "L 1259 4147 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-72\" d=\"M 2631 2963 \n",
       "Q 2534 3019 2420 3045 \n",
       "Q 2306 3072 2169 3072 \n",
       "Q 1681 3072 1420 2755 \n",
       "Q 1159 2438 1159 1844 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1341 3275 1631 3429 \n",
       "Q 1922 3584 2338 3584 \n",
       "Q 2397 3584 2469 3576 \n",
       "Q 2541 3569 2628 3553 \n",
       "L 2631 2963 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6e\" d=\"M 3513 2113 \n",
       "L 3513 0 \n",
       "L 2938 0 \n",
       "L 2938 2094 \n",
       "Q 2938 2591 2744 2837 \n",
       "Q 2550 3084 2163 3084 \n",
       "Q 1697 3084 1428 2787 \n",
       "Q 1159 2491 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1366 3272 1645 3428 \n",
       "Q 1925 3584 2291 3584 \n",
       "Q 2894 3584 3203 3211 \n",
       "Q 3513 2838 3513 2113 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-43\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-75\" x=\"69.824219\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"133.203125\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-75\" x=\"230.615234\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6c\" x=\"293.994141\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"321.777344\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"383.056641\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"422.265625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-76\" x=\"450.048828\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"509.228516\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-20\" x=\"570.751953\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-52\" x=\"602.539062\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"667.521484\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"729.044922\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-75\" x=\"768.253906\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"831.632812\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"870.996094\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_33\">\n",
       "    <path d=\"M 80.580114 306.70523 \n",
       "L 101.019132 310.618984 \n",
       "L 121.458149 307.301391 \n",
       "L 141.452841 313.101719 \n",
       "L 161.669696 330.404114 \n",
       "L 182.108714 321.916508 \n",
       "L 202.547731 324.495373 \n",
       "L 222.542423 315.972482 \n",
       "L 242.759278 314.080225 \n",
       "L 263.198295 299.386173 \n",
       "L 283.637313 250.117877 \n",
       "L 303.632005 220.563089 \n",
       "L 323.848859 194.400787 \n",
       "L 344.287877 275.746861 \n",
       "L 364.726895 252.897416 \n",
       "L 384.94375 279.29951 \n",
       "L 405.160605 286.864468 \n",
       "L 425.599623 285.382463 \n",
       "L 446.038641 272.054416 \n",
       "L 466.033332 273.582604 \n",
       "L 486.250187 284.484301 \n",
       "L 506.689205 277.174231 \n",
       "L 527.128222 282.195092 \n",
       "L 547.122914 290.365803 \n",
       "L 567.339769 319.60452 \n",
       "L 587.778786 331.865558 \n",
       "L 608.217804 339.838125 \n",
       "L 628.212496 301.085884 \n",
       "L 648.429351 320.850694 \n",
       "L 668.868368 328.776062 \n",
       "L 689.307386 323.405774 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #1f77b4; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_34\">\n",
       "    <path d=\"M 80.580114 311.666315 \n",
       "L 101.019132 321.228789 \n",
       "L 121.458149 305.784174 \n",
       "L 141.452841 293.58577 \n",
       "L 161.669696 326.598224 \n",
       "L 182.108714 305.889696 \n",
       "L 202.547731 307.23778 \n",
       "L 222.542423 304.123973 \n",
       "L 242.759278 297.40566 \n",
       "L 263.198295 269.353422 \n",
       "L 283.637313 262.444182 \n",
       "L 303.632005 226.378372 \n",
       "L 323.848859 139.216234 \n",
       "L 344.287877 241.599682 \n",
       "L 364.726895 185.767199 \n",
       "L 384.94375 242.741121 \n",
       "L 405.160605 241.108036 \n",
       "L 425.599623 233.649854 \n",
       "L 446.038641 221.402507 \n",
       "L 466.033332 215.471974 \n",
       "L 486.250187 230.010134 \n",
       "L 506.689205 220.797634 \n",
       "L 527.128222 240.853413 \n",
       "L 547.122914 253.653258 \n",
       "L 567.339769 272.791947 \n",
       "L 587.778786 258.468623 \n",
       "L 608.217804 290.405032 \n",
       "L 628.212496 228.128353 \n",
       "L 648.429351 252.219244 \n",
       "L 668.868368 261.823091 \n",
       "L 689.307386 252.274325 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #ff7f0e; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_35\">\n",
       "    <path d=\"M 80.580114 292.742078 \n",
       "L 101.019132 313.353087 \n",
       "L 121.458149 310.41162 \n",
       "L 141.452841 315.486492 \n",
       "L 161.669696 334.163444 \n",
       "L 182.108714 309.581623 \n",
       "L 202.547731 307.490974 \n",
       "L 222.542423 310.909812 \n",
       "L 242.759278 307.091724 \n",
       "L 263.198295 271.883213 \n",
       "L 283.637313 247.338409 \n",
       "L 303.632005 164.729068 \n",
       "L 323.848859 125.290752 \n",
       "L 344.287877 237.816646 \n",
       "L 364.726895 160.873806 \n",
       "L 384.94375 216.593852 \n",
       "L 405.160605 207.519958 \n",
       "L 425.599623 204.825175 \n",
       "L 446.038641 207.138162 \n",
       "L 466.033332 194.389556 \n",
       "L 486.250187 190.214996 \n",
       "L 506.689205 175.202736 \n",
       "L 527.128222 189.340617 \n",
       "L 547.122914 189.408358 \n",
       "L 567.339769 215.41727 \n",
       "L 587.778786 213.182275 \n",
       "L 608.217804 257.041434 \n",
       "L 628.212496 216.217822 \n",
       "L 648.429351 235.779426 \n",
       "L 668.868368 244.284922 \n",
       "L 689.307386 234.319218 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #2ca02c; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_36\">\n",
       "    <path d=\"M 80.580114 294.361871 \n",
       "L 101.019132 317.249977 \n",
       "L 121.458149 310.991348 \n",
       "L 141.452841 308.707059 \n",
       "L 161.669696 319.0991 \n",
       "L 182.108714 293.595039 \n",
       "L 202.547731 299.564469 \n",
       "L 222.542423 301.205436 \n",
       "L 242.759278 293.21913 \n",
       "L 263.198295 259.451277 \n",
       "L 283.637313 257.632316 \n",
       "L 303.632005 178.983975 \n",
       "L 323.848859 134.237485 \n",
       "L 344.287877 232.101576 \n",
       "L 364.726895 166.364109 \n",
       "L 384.94375 216.376259 \n",
       "L 405.160605 197.819068 \n",
       "L 425.599623 193.510805 \n",
       "L 446.038641 197.313933 \n",
       "L 466.033332 179.828804 \n",
       "L 486.250187 164.315762 \n",
       "L 506.689205 149.31466 \n",
       "L 527.128222 143.185774 \n",
       "L 547.122914 144.832136 \n",
       "L 567.339769 179.988592 \n",
       "L 587.778786 204.110497 \n",
       "L 608.217804 232.127292 \n",
       "L 628.212496 157.851388 \n",
       "L 648.429351 187.051112 \n",
       "L 668.868368 184.058858 \n",
       "L 689.307386 158.514176 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #d62728; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_37\">\n",
       "    <path d=\"M 80.580114 291.633985 \n",
       "L 101.019132 297.274314 \n",
       "L 121.458149 294.319278 \n",
       "L 141.452841 267.023801 \n",
       "L 161.669696 260.732045 \n",
       "L 182.108714 229.432634 \n",
       "L 202.547731 236.338131 \n",
       "L 222.542423 256.42101 \n",
       "L 242.759278 247.874478 \n",
       "L 263.198295 222.429318 \n",
       "L 283.637313 215.307324 \n",
       "L 303.632005 117.271558 \n",
       "L 323.848859 37.438125 \n",
       "L 344.287877 185.276922 \n",
       "L 364.726895 95.378593 \n",
       "L 384.94375 171.098688 \n",
       "L 405.160605 162.118581 \n",
       "L 425.599623 158.683939 \n",
       "L 446.038641 176.816759 \n",
       "L 466.033332 162.08022 \n",
       "L 486.250187 146.321993 \n",
       "L 506.689205 128.917523 \n",
       "L 527.128222 115.437575 \n",
       "L 547.122914 118.663304 \n",
       "L 567.339769 147.858007 \n",
       "L 587.778786 182.835922 \n",
       "L 608.217804 222.329526 \n",
       "L 628.212496 147.598512 \n",
       "L 648.429351 155.949313 \n",
       "L 668.868368 137.24716 \n",
       "L 689.307386 109.640837 \n",
       "\" clip-path=\"url(#p297333da5c)\" style=\"fill: none; stroke: #9467bd; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 50.14375 354.958125 \n",
       "L 50.14375 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 719.74375 354.958125 \n",
       "L 719.74375 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_5\">\n",
       "    <path d=\"M 50.14375 354.958125 \n",
       "L 719.74375 354.958125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_6\">\n",
       "    <path d=\"M 50.14375 22.318125 \n",
       "L 719.74375 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_19\">\n",
       "    <!-- Stock Returns Over Time -->\n",
       "    <g transform=\"translate(310.46875 16.318125)scale(0.12 -0.12)\">\n",
       "     <defs>\n",
       "      <path id=\"DejaVuSans-53\" d=\"M 3425 4513 \n",
       "L 3425 3897 \n",
       "Q 3066 4069 2747 4153 \n",
       "Q 2428 4238 2131 4238 \n",
       "Q 1616 4238 1336 4038 \n",
       "Q 1056 3838 1056 3469 \n",
       "Q 1056 3159 1242 3001 \n",
       "Q 1428 2844 1947 2747 \n",
       "L 2328 2669 \n",
       "Q 3034 2534 3370 2195 \n",
       "Q 3706 1856 3706 1288 \n",
       "Q 3706 609 3251 259 \n",
       "Q 2797 -91 1919 -91 \n",
       "Q 1588 -91 1214 -16 \n",
       "Q 841 59 441 206 \n",
       "L 441 856 \n",
       "Q 825 641 1194 531 \n",
       "Q 1563 422 1919 422 \n",
       "Q 2459 422 2753 634 \n",
       "Q 3047 847 3047 1241 \n",
       "Q 3047 1584 2836 1778 \n",
       "Q 2625 1972 2144 2069 \n",
       "L 1759 2144 \n",
       "Q 1053 2284 737 2584 \n",
       "Q 422 2884 422 3419 \n",
       "Q 422 4038 858 4394 \n",
       "Q 1294 4750 2059 4750 \n",
       "Q 2388 4750 2728 4690 \n",
       "Q 3069 4631 3425 4513 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      <path id=\"DejaVuSans-6f\" d=\"M 1959 3097 \n",
       "Q 1497 3097 1228 2736 \n",
       "Q 959 2375 959 1747 \n",
       "Q 959 1119 1226 758 \n",
       "Q 1494 397 1959 397 \n",
       "Q 2419 397 2687 759 \n",
       "Q 2956 1122 2956 1747 \n",
       "Q 2956 2369 2687 2733 \n",
       "Q 2419 3097 1959 3097 \n",
       "z\n",
       "M 1959 3584 \n",
       "Q 2709 3584 3137 3096 \n",
       "Q 3566 2609 3566 1747 \n",
       "Q 3566 888 3137 398 \n",
       "Q 2709 -91 1959 -91 \n",
       "Q 1206 -91 779 398 \n",
       "Q 353 888 353 1747 \n",
       "Q 353 2609 779 3096 \n",
       "Q 1206 3584 1959 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      <path id=\"DejaVuSans-63\" d=\"M 3122 3366 \n",
       "L 3122 2828 \n",
       "Q 2878 2963 2633 3030 \n",
       "Q 2388 3097 2138 3097 \n",
       "Q 1578 3097 1268 2742 \n",
       "Q 959 2388 959 1747 \n",
       "Q 959 1106 1268 751 \n",
       "Q 1578 397 2138 397 \n",
       "Q 2388 397 2633 464 \n",
       "Q 2878 531 3122 666 \n",
       "L 3122 134 \n",
       "Q 2881 22 2623 -34 \n",
       "Q 2366 -91 2075 -91 \n",
       "Q 1284 -91 818 406 \n",
       "Q 353 903 353 1747 \n",
       "Q 353 2603 823 3093 \n",
       "Q 1294 3584 2113 3584 \n",
       "Q 2378 3584 2631 3529 \n",
       "Q 2884 3475 3122 3366 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      <path id=\"DejaVuSans-6b\" d=\"M 581 4863 \n",
       "L 1159 4863 \n",
       "L 1159 1991 \n",
       "L 2875 3500 \n",
       "L 3609 3500 \n",
       "L 1753 1863 \n",
       "L 3688 0 \n",
       "L 2938 0 \n",
       "L 1159 1709 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      <path id=\"DejaVuSans-73\" d=\"M 2834 3397 \n",
       "L 2834 2853 \n",
       "Q 2591 2978 2328 3040 \n",
       "Q 2066 3103 1784 3103 \n",
       "Q 1356 3103 1142 2972 \n",
       "Q 928 2841 928 2578 \n",
       "Q 928 2378 1081 2264 \n",
       "Q 1234 2150 1697 2047 \n",
       "L 1894 2003 \n",
       "Q 2506 1872 2764 1633 \n",
       "Q 3022 1394 3022 966 \n",
       "Q 3022 478 2636 193 \n",
       "Q 2250 -91 1575 -91 \n",
       "Q 1294 -91 989 -36 \n",
       "Q 684 19 347 128 \n",
       "L 347 722 \n",
       "Q 666 556 975 473 \n",
       "Q 1284 391 1588 391 \n",
       "Q 1994 391 2212 530 \n",
       "Q 2431 669 2431 922 \n",
       "Q 2431 1156 2273 1281 \n",
       "Q 2116 1406 1581 1522 \n",
       "L 1381 1569 \n",
       "Q 847 1681 609 1914 \n",
       "Q 372 2147 372 2553 \n",
       "Q 372 3047 722 3315 \n",
       "Q 1072 3584 1716 3584 \n",
       "Q 2034 3584 2315 3537 \n",
       "Q 2597 3491 2834 3397 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      <path id=\"DejaVuSans-4f\" d=\"M 2522 4238 \n",
       "Q 1834 4238 1429 3725 \n",
       "Q 1025 3213 1025 2328 \n",
       "Q 1025 1447 1429 934 \n",
       "Q 1834 422 2522 422 \n",
       "Q 3209 422 3611 934 \n",
       "Q 4013 1447 4013 2328 \n",
       "Q 4013 3213 3611 3725 \n",
       "Q 3209 4238 2522 4238 \n",
       "z\n",
       "M 2522 4750 \n",
       "Q 3503 4750 4090 4092 \n",
       "Q 4678 3434 4678 2328 \n",
       "Q 4678 1225 4090 567 \n",
       "Q 3503 -91 2522 -91 \n",
       "Q 1538 -91 948 565 \n",
       "Q 359 1222 359 2328 \n",
       "Q 359 3434 948 4092 \n",
       "Q 1538 4750 2522 4750 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      <path id=\"DejaVuSans-54\" d=\"M -19 4666 \n",
       "L 3928 4666 \n",
       "L 3928 4134 \n",
       "L 2272 4134 \n",
       "L 2272 0 \n",
       "L 1638 0 \n",
       "L 1638 4134 \n",
       "L -19 4134 \n",
       "L -19 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "     </defs>\n",
       "     <use xlink:href=\"#DejaVuSans-53\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-74\" x=\"63.476562\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-6f\" x=\"102.685547\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-63\" x=\"163.867188\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-6b\" x=\"218.847656\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-20\" x=\"276.757812\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-52\" x=\"308.544922\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"373.527344\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-74\" x=\"435.050781\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-75\" x=\"474.259766\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-72\" x=\"537.638672\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-6e\" x=\"577.001953\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-73\" x=\"640.380859\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-20\" x=\"692.480469\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-4f\" x=\"724.267578\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-76\" x=\"802.978516\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"862.158203\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-72\" x=\"923.681641\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-20\" x=\"964.794922\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-54\" x=\"996.582031\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-69\" x=\"1054.541016\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-6d\" x=\"1082.324219\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"1179.736328\"/>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"legend_1\">\n",
       "    <g id=\"patch_7\">\n",
       "     <path d=\"M 57.14375 118.386875 \n",
       "L 126.425 118.386875 \n",
       "Q 128.425 118.386875 128.425 116.386875 \n",
       "L 128.425 29.318125 \n",
       "Q 128.425 27.318125 126.425 27.318125 \n",
       "L 57.14375 27.318125 \n",
       "Q 55.14375 27.318125 55.14375 29.318125 \n",
       "L 55.14375 116.386875 \n",
       "Q 55.14375 118.386875 57.14375 118.386875 \n",
       "z\n",
       "\" style=\"fill: #ffffff; opacity: 0.8; stroke: #cccccc; stroke-linejoin: miter\"/>\n",
       "    </g>\n",
       "    <g id=\"text_20\">\n",
       "     <!-- Stock -->\n",
       "     <g transform=\"translate(77.946094 38.916562)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-53\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"63.476562\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6f\" x=\"102.685547\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-63\" x=\"163.867188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6b\" x=\"218.847656\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_38\">\n",
       "     <path d=\"M 59.14375 50.094688 \n",
       "L 69.14375 50.094688 \n",
       "L 79.14375 50.094688 \n",
       "\" style=\"fill: none; stroke: #1f77b4; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_21\">\n",
       "     <!-- P1price -->\n",
       "     <g transform=\"translate(87.14375 53.594688)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-50\" d=\"M 1259 4147 \n",
       "L 1259 2394 \n",
       "L 2053 2394 \n",
       "Q 2494 2394 2734 2622 \n",
       "Q 2975 2850 2975 3272 \n",
       "Q 2975 3691 2734 3919 \n",
       "Q 2494 4147 2053 4147 \n",
       "L 1259 4147 \n",
       "z\n",
       "M 628 4666 \n",
       "L 2053 4666 \n",
       "Q 2838 4666 3239 4311 \n",
       "Q 3641 3956 3641 3272 \n",
       "Q 3641 2581 3239 2228 \n",
       "Q 2838 1875 2053 1875 \n",
       "L 1259 1875 \n",
       "L 1259 0 \n",
       "L 628 0 \n",
       "L 628 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-70\" d=\"M 1159 525 \n",
       "L 1159 -1331 \n",
       "L 581 -1331 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2969 \n",
       "Q 1341 3281 1617 3432 \n",
       "Q 1894 3584 2278 3584 \n",
       "Q 2916 3584 3314 3078 \n",
       "Q 3713 2572 3713 1747 \n",
       "Q 3713 922 3314 415 \n",
       "Q 2916 -91 2278 -91 \n",
       "Q 1894 -91 1617 61 \n",
       "Q 1341 213 1159 525 \n",
       "z\n",
       "M 3116 1747 \n",
       "Q 3116 2381 2855 2742 \n",
       "Q 2594 3103 2138 3103 \n",
       "Q 1681 3103 1420 2742 \n",
       "Q 1159 2381 1159 1747 \n",
       "Q 1159 1113 1420 752 \n",
       "Q 1681 391 2138 391 \n",
       "Q 2594 391 2855 752 \n",
       "Q 3116 1113 3116 1747 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-50\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-31\" x=\"60.302734\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-70\" x=\"123.925781\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"187.402344\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"228.515625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-63\" x=\"256.298828\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"311.279297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_39\">\n",
       "     <path d=\"M 59.14375 64.772813 \n",
       "L 69.14375 64.772813 \n",
       "L 79.14375 64.772813 \n",
       "\" style=\"fill: none; stroke: #ff7f0e; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_22\">\n",
       "     <!-- P2price -->\n",
       "     <g transform=\"translate(87.14375 68.272813)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-50\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-32\" x=\"60.302734\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-70\" x=\"123.925781\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"187.402344\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"228.515625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-63\" x=\"256.298828\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"311.279297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_40\">\n",
       "     <path d=\"M 59.14375 79.450938 \n",
       "L 69.14375 79.450938 \n",
       "L 79.14375 79.450938 \n",
       "\" style=\"fill: none; stroke: #2ca02c; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_23\">\n",
       "     <!-- P3price -->\n",
       "     <g transform=\"translate(87.14375 82.950938)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-50\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-33\" x=\"60.302734\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-70\" x=\"123.925781\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"187.402344\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"228.515625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-63\" x=\"256.298828\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"311.279297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_41\">\n",
       "     <path d=\"M 59.14375 94.129063 \n",
       "L 69.14375 94.129063 \n",
       "L 79.14375 94.129063 \n",
       "\" style=\"fill: none; stroke: #d62728; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_24\">\n",
       "     <!-- P4price -->\n",
       "     <g transform=\"translate(87.14375 97.629063)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-50\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-34\" x=\"60.302734\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-70\" x=\"123.925781\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"187.402344\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"228.515625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-63\" x=\"256.298828\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"311.279297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_42\">\n",
       "     <path d=\"M 59.14375 108.807188 \n",
       "L 69.14375 108.807188 \n",
       "L 79.14375 108.807188 \n",
       "\" style=\"fill: none; stroke: #9467bd; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_25\">\n",
       "     <!-- P5price -->\n",
       "     <g transform=\"translate(87.14375 112.307188)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-50\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-35\" x=\"60.302734\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-70\" x=\"123.925781\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"187.402344\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"228.515625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-63\" x=\"256.298828\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"311.279297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       " </g>\n",
       " <defs>\n",
       "  <clipPath id=\"p297333da5c\">\n",
       "   <rect x=\"50.14375\" y=\"22.318125\" width=\"669.6\" height=\"332.64\"/>\n",
       "  </clipPath>\n",
       " </defs>\n",
       "</svg>\n"
      ],
      "text/plain": [
       "<Figure size 1200x600 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "plt.figure(figsize=(12, 6))\n",
    "for column in INS.columns:\n",
    "    plt.plot(INS.index, INS[column], label=column)\n",
    "plt.title('Stock Returns Over Time')\n",
    "plt.xlabel('Date')\n",
    "plt.ylabel('Cumulative Return')\n",
    "plt.legend(title='Stock')\n",
    "plt.grid(True)\n",
    "plt.savefig('INS.pdf', bbox_inches='tight')\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/var/folders/_p/rfbd33cd5jggpfbv91zgdptr0000gn/T/ipykernel_2497/3311581835.py:2: UserWarning: Pandas requires version '3.0.5' or newer of 'xlsxwriter' (version '3.0.3' currently installed).\n",
      "  description.to_excel('outcome3_3.xlsx', index=False)\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>stkcd</th>\n",
       "      <th>month</th>\n",
       "      <th>retrf</th>\n",
       "      <th>mktrf</th>\n",
       "      <th>smb</th>\n",
       "      <th>hml</th>\n",
       "      <th>umd</th>\n",
       "      <th>size</th>\n",
       "      <th>bm</th>\n",
       "      <th>return12</th>\n",
       "      <th>roa</th>\n",
       "      <th>lev</th>\n",
       "      <th>ppe</th>\n",
       "      <th>intang</th>\n",
       "      <th>numanalyst</th>\n",
       "      <th>instown</th>\n",
       "      <th>mv</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>count</th>\n",
       "      <td>87432.000000</td>\n",
       "      <td>87432</td>\n",
       "      <td>87432.000000</td>\n",
       "      <td>87432.000000</td>\n",
       "      <td>87432.000000</td>\n",
       "      <td>87432.000000</td>\n",
       "      <td>87432.000000</td>\n",
       "      <td>87432.000000</td>\n",
       "      <td>87432.000000</td>\n",
       "      <td>87432.000000</td>\n",
       "      <td>87432.000000</td>\n",
       "      <td>87432.000000</td>\n",
       "      <td>87432.000000</td>\n",
       "      <td>87432.000000</td>\n",
       "      <td>87432.000000</td>\n",
       "      <td>87432.000000</td>\n",
       "      <td>8.743200e+04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>mean</th>\n",
       "      <td>268050.083413</td>\n",
       "      <td>2017-02-11 01:03:32.462256384</td>\n",
       "      <td>0.801858</td>\n",
       "      <td>0.549052</td>\n",
       "      <td>0.071463</td>\n",
       "      <td>0.047318</td>\n",
       "      <td>0.610678</td>\n",
       "      <td>22.562610</td>\n",
       "      <td>0.404383</td>\n",
       "      <td>7.625414</td>\n",
       "      <td>0.014287</td>\n",
       "      <td>0.198853</td>\n",
       "      <td>0.186639</td>\n",
       "      <td>0.041708</td>\n",
       "      <td>8.508235</td>\n",
       "      <td>6.604950</td>\n",
       "      <td>1.004787e+10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>min</th>\n",
       "      <td>9.000000</td>\n",
       "      <td>2012-04-01 00:00:00</td>\n",
       "      <td>-63.793800</td>\n",
       "      <td>-23.791700</td>\n",
       "      <td>-22.498800</td>\n",
       "      <td>-15.508400</td>\n",
       "      <td>-19.060600</td>\n",
       "      <td>18.825680</td>\n",
       "      <td>0.001407</td>\n",
       "      <td>-84.182590</td>\n",
       "      <td>-0.670413</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>8.786000e+07</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25%</th>\n",
       "      <td>2399.000000</td>\n",
       "      <td>2015-08-01 00:00:00</td>\n",
       "      <td>-6.932950</td>\n",
       "      <td>-2.091700</td>\n",
       "      <td>-2.735800</td>\n",
       "      <td>-1.220300</td>\n",
       "      <td>-1.871100</td>\n",
       "      <td>21.930910</td>\n",
       "      <td>0.208675</td>\n",
       "      <td>-28.268248</td>\n",
       "      <td>0.003893</td>\n",
       "      <td>0.052722</td>\n",
       "      <td>0.087125</td>\n",
       "      <td>0.018373</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.440625</td>\n",
       "      <td>1.900625e+09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>50%</th>\n",
       "      <td>300179.000000</td>\n",
       "      <td>2017-09-01 00:00:00</td>\n",
       "      <td>-0.557350</td>\n",
       "      <td>0.408300</td>\n",
       "      <td>-0.439700</td>\n",
       "      <td>0.206900</td>\n",
       "      <td>1.312800</td>\n",
       "      <td>22.448340</td>\n",
       "      <td>0.330566</td>\n",
       "      <td>-6.721645</td>\n",
       "      <td>0.012202</td>\n",
       "      <td>0.167474</td>\n",
       "      <td>0.159309</td>\n",
       "      <td>0.033049</td>\n",
       "      <td>5.000000</td>\n",
       "      <td>2.764200</td>\n",
       "      <td>3.788124e+09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>75%</th>\n",
       "      <td>600330.500000</td>\n",
       "      <td>2018-12-01 00:00:00</td>\n",
       "      <td>6.944950</td>\n",
       "      <td>3.808300</td>\n",
       "      <td>2.570500</td>\n",
       "      <td>1.755700</td>\n",
       "      <td>3.484000</td>\n",
       "      <td>23.057380</td>\n",
       "      <td>0.509038</td>\n",
       "      <td>25.318825</td>\n",
       "      <td>0.023476</td>\n",
       "      <td>0.313264</td>\n",
       "      <td>0.259540</td>\n",
       "      <td>0.051976</td>\n",
       "      <td>13.000000</td>\n",
       "      <td>8.750450</td>\n",
       "      <td>7.763692e+09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>max</th>\n",
       "      <td>900956.000000</td>\n",
       "      <td>2019-12-01 00:00:00</td>\n",
       "      <td>214.341400</td>\n",
       "      <td>18.804200</td>\n",
       "      <td>21.381900</td>\n",
       "      <td>16.381200</td>\n",
       "      <td>13.952000</td>\n",
       "      <td>28.272530</td>\n",
       "      <td>12.155790</td>\n",
       "      <td>1277.076000</td>\n",
       "      <td>0.770416</td>\n",
       "      <td>0.925070</td>\n",
       "      <td>0.895768</td>\n",
       "      <td>0.781051</td>\n",
       "      <td>76.000000</td>\n",
       "      <td>87.646500</td>\n",
       "      <td>1.899346e+12</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>std</th>\n",
       "      <td>253053.011578</td>\n",
       "      <td>NaN</td>\n",
       "      <td>13.596113</td>\n",
       "      <td>5.977210</td>\n",
       "      <td>4.956014</td>\n",
       "      <td>3.735399</td>\n",
       "      <td>4.858948</td>\n",
       "      <td>0.929341</td>\n",
       "      <td>0.337864</td>\n",
       "      <td>60.980851</td>\n",
       "      <td>0.026013</td>\n",
       "      <td>0.167492</td>\n",
       "      <td>0.131531</td>\n",
       "      <td>0.042359</td>\n",
       "      <td>9.945758</td>\n",
       "      <td>9.677009</td>\n",
       "      <td>4.904809e+10</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "               stkcd                          month         retrf  \\\n",
       "count   87432.000000                          87432  87432.000000   \n",
       "mean   268050.083413  2017-02-11 01:03:32.462256384      0.801858   \n",
       "min         9.000000            2012-04-01 00:00:00    -63.793800   \n",
       "25%      2399.000000            2015-08-01 00:00:00     -6.932950   \n",
       "50%    300179.000000            2017-09-01 00:00:00     -0.557350   \n",
       "75%    600330.500000            2018-12-01 00:00:00      6.944950   \n",
       "max    900956.000000            2019-12-01 00:00:00    214.341400   \n",
       "std    253053.011578                            NaN     13.596113   \n",
       "\n",
       "              mktrf           smb           hml           umd          size  \\\n",
       "count  87432.000000  87432.000000  87432.000000  87432.000000  87432.000000   \n",
       "mean       0.549052      0.071463      0.047318      0.610678     22.562610   \n",
       "min      -23.791700    -22.498800    -15.508400    -19.060600     18.825680   \n",
       "25%       -2.091700     -2.735800     -1.220300     -1.871100     21.930910   \n",
       "50%        0.408300     -0.439700      0.206900      1.312800     22.448340   \n",
       "75%        3.808300      2.570500      1.755700      3.484000     23.057380   \n",
       "max       18.804200     21.381900     16.381200     13.952000     28.272530   \n",
       "std        5.977210      4.956014      3.735399      4.858948      0.929341   \n",
       "\n",
       "                 bm      return12           roa           lev           ppe  \\\n",
       "count  87432.000000  87432.000000  87432.000000  87432.000000  87432.000000   \n",
       "mean       0.404383      7.625414      0.014287      0.198853      0.186639   \n",
       "min        0.001407    -84.182590     -0.670413      0.000000      0.000000   \n",
       "25%        0.208675    -28.268248      0.003893      0.052722      0.087125   \n",
       "50%        0.330566     -6.721645      0.012202      0.167474      0.159309   \n",
       "75%        0.509038     25.318825      0.023476      0.313264      0.259540   \n",
       "max       12.155790   1277.076000      0.770416      0.925070      0.895768   \n",
       "std        0.337864     60.980851      0.026013      0.167492      0.131531   \n",
       "\n",
       "             intang    numanalyst       instown            mv  \n",
       "count  87432.000000  87432.000000  87432.000000  8.743200e+04  \n",
       "mean       0.041708      8.508235      6.604950  1.004787e+10  \n",
       "min        0.000000      0.000000      0.000000  8.786000e+07  \n",
       "25%        0.018373      1.000000      0.440625  1.900625e+09  \n",
       "50%        0.033049      5.000000      2.764200  3.788124e+09  \n",
       "75%        0.051976     13.000000      8.750450  7.763692e+09  \n",
       "max        0.781051     76.000000     87.646500  1.899346e+12  \n",
       "std        0.042359      9.945758      9.677009  4.904809e+10  "
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "description=data1.describe()\n",
    "description.to_excel('outcome3_3.xlsx', index=False)\n",
    "description"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/var/folders/_p/rfbd33cd5jggpfbv91zgdptr0000gn/T/ipykernel_2497/3197008138.py:5: SettingWithCopyWarning: \n",
      "A value is trying to be set on a copy of a slice from a DataFrame\n",
      "\n",
      "See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
      "  regdata.rename(columns={'month': 'date'}, inplace=True)\n",
      "/var/folders/_p/rfbd33cd5jggpfbv91zgdptr0000gn/T/ipykernel_2497/3197008138.py:6: SettingWithCopyWarning: \n",
      "A value is trying to be set on a copy of a slice from a DataFrame.\n",
      "Try using .loc[row_indexer,col_indexer] = value instead\n",
      "\n",
      "See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
      "  regdata['date'] = pd.to_datetime(regdata['date'])\n",
      "/var/folders/_p/rfbd33cd5jggpfbv91zgdptr0000gn/T/ipykernel_2497/3197008138.py:8: SettingWithCopyWarning: \n",
      "A value is trying to be set on a copy of a slice from a DataFrame.\n",
      "Try using .loc[row_indexer,col_indexer] = value instead\n",
      "\n",
      "See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
      "  regdata['year'] = regdata['date'].dt.year\n",
      "/var/folders/_p/rfbd33cd5jggpfbv91zgdptr0000gn/T/ipykernel_2497/3197008138.py:9: SettingWithCopyWarning: \n",
      "A value is trying to be set on a copy of a slice from a DataFrame.\n",
      "Try using .loc[row_indexer,col_indexer] = value instead\n",
      "\n",
      "See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
      "  regdata['month'] = regdata['date'].dt.month\n",
      "/var/folders/_p/rfbd33cd5jggpfbv91zgdptr0000gn/T/ipykernel_2497/3197008138.py:10: SettingWithCopyWarning: \n",
      "A value is trying to be set on a copy of a slice from a DataFrame.\n",
      "Try using .loc[row_indexer,col_indexer] = value instead\n",
      "\n",
      "See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
      "  regdata['lnmv']=regdata['mv'].apply(np.log)\n",
      "/var/folders/_p/rfbd33cd5jggpfbv91zgdptr0000gn/T/ipykernel_2497/3197008138.py:11: SettingWithCopyWarning: \n",
      "A value is trying to be set on a copy of a slice from a DataFrame.\n",
      "Try using .loc[row_indexer,col_indexer] = value instead\n",
      "\n",
      "See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
      "  regdata['nextret']=regdata['retrf'].shift(-1)\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>stkcd</th>\n",
       "      <th>date</th>\n",
       "      <th>retrf</th>\n",
       "      <th>size</th>\n",
       "      <th>bm</th>\n",
       "      <th>return12</th>\n",
       "      <th>roa</th>\n",
       "      <th>lev</th>\n",
       "      <th>ppe</th>\n",
       "      <th>intang</th>\n",
       "      <th>numanalyst</th>\n",
       "      <th>instown</th>\n",
       "      <th>mv</th>\n",
       "      <th>year</th>\n",
       "      <th>month</th>\n",
       "      <th>lnmv</th>\n",
       "      <th>nextret</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>000009</td>\n",
       "      <td>2013-07-01</td>\n",
       "      <td>9.0756</td>\n",
       "      <td>23.10871</td>\n",
       "      <td>0.438860</td>\n",
       "      <td>13.374120</td>\n",
       "      <td>0.007949</td>\n",
       "      <td>0.430605</td>\n",
       "      <td>0.086185</td>\n",
       "      <td>0.031575</td>\n",
       "      <td>0</td>\n",
       "      <td>6.4646</td>\n",
       "      <td>11874173952</td>\n",
       "      <td>2013</td>\n",
       "      <td>7</td>\n",
       "      <td>23.197632</td>\n",
       "      <td>-5.1363</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>000009</td>\n",
       "      <td>2013-08-01</td>\n",
       "      <td>-5.1363</td>\n",
       "      <td>23.10871</td>\n",
       "      <td>0.438860</td>\n",
       "      <td>13.374120</td>\n",
       "      <td>0.007949</td>\n",
       "      <td>0.430605</td>\n",
       "      <td>0.086185</td>\n",
       "      <td>0.031575</td>\n",
       "      <td>0</td>\n",
       "      <td>6.4646</td>\n",
       "      <td>11874173952</td>\n",
       "      <td>2013</td>\n",
       "      <td>8</td>\n",
       "      <td>23.197632</td>\n",
       "      <td>3.5840</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>000009</td>\n",
       "      <td>2013-09-01</td>\n",
       "      <td>3.5840</td>\n",
       "      <td>23.10871</td>\n",
       "      <td>0.438860</td>\n",
       "      <td>13.374120</td>\n",
       "      <td>0.007949</td>\n",
       "      <td>0.430605</td>\n",
       "      <td>0.086185</td>\n",
       "      <td>0.031575</td>\n",
       "      <td>0</td>\n",
       "      <td>6.4646</td>\n",
       "      <td>11874173952</td>\n",
       "      <td>2013</td>\n",
       "      <td>9</td>\n",
       "      <td>23.197632</td>\n",
       "      <td>-1.0932</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>000009</td>\n",
       "      <td>2014-01-01</td>\n",
       "      <td>-1.0932</td>\n",
       "      <td>23.28204</td>\n",
       "      <td>0.394303</td>\n",
       "      <td>46.591590</td>\n",
       "      <td>0.025973</td>\n",
       "      <td>0.432246</td>\n",
       "      <td>0.098660</td>\n",
       "      <td>0.029798</td>\n",
       "      <td>0</td>\n",
       "      <td>5.6741</td>\n",
       "      <td>11731143680</td>\n",
       "      <td>2014</td>\n",
       "      <td>1</td>\n",
       "      <td>23.185513</td>\n",
       "      <td>19.0704</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>000009</td>\n",
       "      <td>2014-02-01</td>\n",
       "      <td>19.0704</td>\n",
       "      <td>23.28204</td>\n",
       "      <td>0.394303</td>\n",
       "      <td>46.591590</td>\n",
       "      <td>0.025973</td>\n",
       "      <td>0.432246</td>\n",
       "      <td>0.098660</td>\n",
       "      <td>0.029798</td>\n",
       "      <td>0</td>\n",
       "      <td>5.6741</td>\n",
       "      <td>11731143680</td>\n",
       "      <td>2014</td>\n",
       "      <td>2</td>\n",
       "      <td>23.185513</td>\n",
       "      <td>-5.9711</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87426</th>\n",
       "      <td>900956</td>\n",
       "      <td>2019-07-01</td>\n",
       "      <td>-7.9842</td>\n",
       "      <td>19.54512</td>\n",
       "      <td>5.124264</td>\n",
       "      <td>-4.492293</td>\n",
       "      <td>0.005443</td>\n",
       "      <td>0.598459</td>\n",
       "      <td>0.267594</td>\n",
       "      <td>0.025879</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>131675000</td>\n",
       "      <td>2019</td>\n",
       "      <td>7</td>\n",
       "      <td>18.695847</td>\n",
       "      <td>-5.3373</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87427</th>\n",
       "      <td>900956</td>\n",
       "      <td>2019-08-01</td>\n",
       "      <td>-5.3373</td>\n",
       "      <td>19.54512</td>\n",
       "      <td>5.124264</td>\n",
       "      <td>-4.492293</td>\n",
       "      <td>0.005443</td>\n",
       "      <td>0.598459</td>\n",
       "      <td>0.267594</td>\n",
       "      <td>0.025879</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>131675000</td>\n",
       "      <td>2019</td>\n",
       "      <td>8</td>\n",
       "      <td>18.695847</td>\n",
       "      <td>11.0761</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87428</th>\n",
       "      <td>900956</td>\n",
       "      <td>2019-09-01</td>\n",
       "      <td>11.0761</td>\n",
       "      <td>19.54512</td>\n",
       "      <td>5.124264</td>\n",
       "      <td>-4.492293</td>\n",
       "      <td>0.005443</td>\n",
       "      <td>0.598459</td>\n",
       "      <td>0.267594</td>\n",
       "      <td>0.025879</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>131675000</td>\n",
       "      <td>2019</td>\n",
       "      <td>9</td>\n",
       "      <td>18.695847</td>\n",
       "      <td>12.3759</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87429</th>\n",
       "      <td>900956</td>\n",
       "      <td>2019-10-01</td>\n",
       "      <td>12.3759</td>\n",
       "      <td>19.41050</td>\n",
       "      <td>5.950344</td>\n",
       "      <td>-14.776860</td>\n",
       "      <td>0.010888</td>\n",
       "      <td>0.425125</td>\n",
       "      <td>0.269671</td>\n",
       "      <td>0.025286</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>127880000</td>\n",
       "      <td>2019</td>\n",
       "      <td>10</td>\n",
       "      <td>18.666603</td>\n",
       "      <td>0.5954</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87430</th>\n",
       "      <td>900956</td>\n",
       "      <td>2019-11-01</td>\n",
       "      <td>0.5954</td>\n",
       "      <td>19.41050</td>\n",
       "      <td>5.950344</td>\n",
       "      <td>-14.776860</td>\n",
       "      <td>0.010888</td>\n",
       "      <td>0.425125</td>\n",
       "      <td>0.269671</td>\n",
       "      <td>0.025286</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>127880000</td>\n",
       "      <td>2019</td>\n",
       "      <td>11</td>\n",
       "      <td>18.666603</td>\n",
       "      <td>7.2701</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>87431 rows × 17 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "        stkcd       date    retrf      size        bm   return12       roa  \\\n",
       "0      000009 2013-07-01   9.0756  23.10871  0.438860  13.374120  0.007949   \n",
       "1      000009 2013-08-01  -5.1363  23.10871  0.438860  13.374120  0.007949   \n",
       "2      000009 2013-09-01   3.5840  23.10871  0.438860  13.374120  0.007949   \n",
       "3      000009 2014-01-01  -1.0932  23.28204  0.394303  46.591590  0.025973   \n",
       "4      000009 2014-02-01  19.0704  23.28204  0.394303  46.591590  0.025973   \n",
       "...       ...        ...      ...       ...       ...        ...       ...   \n",
       "87426  900956 2019-07-01  -7.9842  19.54512  5.124264  -4.492293  0.005443   \n",
       "87427  900956 2019-08-01  -5.3373  19.54512  5.124264  -4.492293  0.005443   \n",
       "87428  900956 2019-09-01  11.0761  19.54512  5.124264  -4.492293  0.005443   \n",
       "87429  900956 2019-10-01  12.3759  19.41050  5.950344 -14.776860  0.010888   \n",
       "87430  900956 2019-11-01   0.5954  19.41050  5.950344 -14.776860  0.010888   \n",
       "\n",
       "            lev       ppe    intang  numanalyst  instown           mv  year  \\\n",
       "0      0.430605  0.086185  0.031575           0   6.4646  11874173952  2013   \n",
       "1      0.430605  0.086185  0.031575           0   6.4646  11874173952  2013   \n",
       "2      0.430605  0.086185  0.031575           0   6.4646  11874173952  2013   \n",
       "3      0.432246  0.098660  0.029798           0   5.6741  11731143680  2014   \n",
       "4      0.432246  0.098660  0.029798           0   5.6741  11731143680  2014   \n",
       "...         ...       ...       ...         ...      ...          ...   ...   \n",
       "87426  0.598459  0.267594  0.025879           0   0.0000    131675000  2019   \n",
       "87427  0.598459  0.267594  0.025879           0   0.0000    131675000  2019   \n",
       "87428  0.598459  0.267594  0.025879           0   0.0000    131675000  2019   \n",
       "87429  0.425125  0.269671  0.025286           0   0.0000    127880000  2019   \n",
       "87430  0.425125  0.269671  0.025286           0   0.0000    127880000  2019   \n",
       "\n",
       "       month       lnmv  nextret  \n",
       "0          7  23.197632  -5.1363  \n",
       "1          8  23.197632   3.5840  \n",
       "2          9  23.197632  -1.0932  \n",
       "3          1  23.185513  19.0704  \n",
       "4          2  23.185513  -5.9711  \n",
       "...      ...        ...      ...  \n",
       "87426      7  18.695847  -5.3373  \n",
       "87427      8  18.695847  11.0761  \n",
       "87428      9  18.695847  12.3759  \n",
       "87429     10  18.666603   0.5954  \n",
       "87430     11  18.666603   7.2701  \n",
       "\n",
       "[87431 rows x 17 columns]"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from linearmodels.panel import PanelOLS\n",
    "import statsmodels.formula.api as smf\n",
    "data1['stkcd'] = data1['stkcd'].apply(lambda x: '{:0>6}'.format(x)) # 6位股票代码\n",
    "regdata=data1[['stkcd','month','retrf','size','bm','return12','roa','lev','ppe','intang','numanalyst','instown','mv']]\n",
    "regdata.rename(columns={'month': 'date'}, inplace=True)\n",
    "regdata['date'] = pd.to_datetime(regdata['date'])\n",
    "regdata['year'] = regdata['date'].dt.year\n",
    "regdata['month'] = regdata['date'].dt.month\n",
    "regdata['lnmv']=regdata['mv'].apply(np.log)\n",
    "regdata['nextret']=regdata['retrf'].shift(-1)\n",
    "regdata=regdata.dropna()\n",
    "regdata"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "                          PanelOLS Estimation Summary                           \n",
      "================================================================================\n",
      "Dep. Variable:                nextret   R-squared:                        0.0058\n",
      "Estimator:                   PanelOLS   R-squared (Between):              0.0616\n",
      "No. Observations:               87431   R-squared (Within):               0.0021\n",
      "Date:                Thu, Dec 19 2024   R-squared (Overall):              0.0058\n",
      "Time:                        16:21:13   Log-likelihood                -3.521e+05\n",
      "Cov. Estimator:             Clustered                                           \n",
      "                                        F-statistic:                      51.389\n",
      "Entities:                        2035   P-value                           0.0000\n",
      "Avg Obs:                       42.964   Distribution:                F(10,87421)\n",
      "Min Obs:                       3.0000                                           \n",
      "Max Obs:                       93.000   F-statistic (robust):             1.9379\n",
      "                                        P-value                           0.0357\n",
      "Time periods:                      93   Distribution:                F(10,87421)\n",
      "Avg Obs:                       940.12                                           \n",
      "Min Obs:                       388.00                                           \n",
      "Max Obs:                       1825.0                                           \n",
      "                                                                                \n",
      "                             Parameter Estimates                              \n",
      "==============================================================================\n",
      "            Parameter  Std. Err.     T-stat    P-value    Lower CI    Upper CI\n",
      "------------------------------------------------------------------------------\n",
      "size          -0.4547     0.7001    -0.6495     0.5160     -1.8269      0.9175\n",
      "bm             1.3235     0.7998     1.6547     0.0980     -0.2442      2.8911\n",
      "return12       0.0030     0.0129     0.2281     0.8196     -0.0224      0.0283\n",
      "roa            5.3443     7.1019     0.7525     0.4517     -8.5754      19.264\n",
      "lev            0.3350     1.9527     0.1716     0.8638     -3.4923      4.1624\n",
      "ppe            0.0861     1.1849     0.0726     0.9421     -2.2364      2.4086\n",
      "intang         0.0247     1.2066     0.0205     0.9836     -2.3402      2.3897\n",
      "numanalyst    -0.0090     0.0165    -0.5461     0.5850     -0.0415      0.0234\n",
      "instown        0.0458     0.0168     2.7269     0.0064      0.0129      0.0787\n",
      "lnmv           0.4559     0.7105     0.6417     0.5211     -0.9366      1.8485\n",
      "==============================================================================\n",
      "\n",
      "\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<table class=\"simpletable\">\n",
       "<caption>PanelOLS Estimation Summary</caption>\n",
       "<tr>\n",
       "  <th>Dep. Variable:</th>         <td>nextret</td>     <th>  R-squared:         </th>     <td>0.0058</td>   \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Estimator:</th>            <td>PanelOLS</td>     <th>  R-squared (Between):</th>    <td>0.0616</td>   \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>No. Observations:</th>       <td>87431</td>      <th>  R-squared (Within):</th>     <td>0.0021</td>   \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Date:</th>             <td>Thu, Dec 19 2024</td> <th>  R-squared (Overall):</th>    <td>0.0058</td>   \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Time:</th>                 <td>16:21:13</td>     <th>  Log-likelihood     </th>   <td>-3.521e+05</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Cov. Estimator:</th>       <td>Clustered</td>    <th>                     </th>        <td></td>      \n",
       "</tr>\n",
       "<tr>\n",
       "  <th></th>                          <td></td>         <th>  F-statistic:       </th>     <td>51.389</td>   \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Entities:</th>               <td>2035</td>       <th>  P-value            </th>     <td>0.0000</td>   \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Avg Obs:</th>               <td>42.964</td>      <th>  Distribution:      </th>   <td>F(10,87421)</td>\n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Min Obs:</th>               <td>3.0000</td>      <th>                     </th>        <td></td>      \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Max Obs:</th>               <td>93.000</td>      <th>  F-statistic (robust):</th>   <td>1.9379</td>   \n",
       "</tr>\n",
       "<tr>\n",
       "  <th></th>                          <td></td>         <th>  P-value            </th>     <td>0.0357</td>   \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Time periods:</th>            <td>93</td>        <th>  Distribution:      </th>   <td>F(10,87421)</td>\n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Avg Obs:</th>               <td>940.12</td>      <th>                     </th>        <td></td>      \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Min Obs:</th>               <td>388.00</td>      <th>                     </th>        <td></td>      \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Max Obs:</th>               <td>1825.0</td>      <th>                     </th>        <td></td>      \n",
       "</tr>\n",
       "<tr>\n",
       "  <th></th>                          <td></td>         <th>                     </th>        <td></td>      \n",
       "</tr>\n",
       "</table>\n",
       "<table class=\"simpletable\">\n",
       "<caption>Parameter Estimates</caption>\n",
       "<tr>\n",
       "       <td></td>      <th>Parameter</th> <th>Std. Err.</th> <th>T-stat</th>  <th>P-value</th> <th>Lower CI</th> <th>Upper CI</th>\n",
       "</tr>\n",
       "<tr>\n",
       "  <th>size</th>        <td>-0.4547</td>   <td>0.7001</td>   <td>-0.6495</td> <td>0.5160</td>   <td>-1.8269</td>  <td>0.9175</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>bm</th>          <td>1.3235</td>    <td>0.7998</td>   <td>1.6547</td>  <td>0.0980</td>   <td>-0.2442</td>  <td>2.8911</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>return12</th>    <td>0.0030</td>    <td>0.0129</td>   <td>0.2281</td>  <td>0.8196</td>   <td>-0.0224</td>  <td>0.0283</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>roa</th>         <td>5.3443</td>    <td>7.1019</td>   <td>0.7525</td>  <td>0.4517</td>   <td>-8.5754</td>  <td>19.264</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>lev</th>         <td>0.3350</td>    <td>1.9527</td>   <td>0.1716</td>  <td>0.8638</td>   <td>-3.4923</td>  <td>4.1624</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>ppe</th>         <td>0.0861</td>    <td>1.1849</td>   <td>0.0726</td>  <td>0.9421</td>   <td>-2.2364</td>  <td>2.4086</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>intang</th>      <td>0.0247</td>    <td>1.2066</td>   <td>0.0205</td>  <td>0.9836</td>   <td>-2.3402</td>  <td>2.3897</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>numanalyst</th>  <td>-0.0090</td>   <td>0.0165</td>   <td>-0.5461</td> <td>0.5850</td>   <td>-0.0415</td>  <td>0.0234</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>instown</th>     <td>0.0458</td>    <td>0.0168</td>   <td>2.7269</td>  <td>0.0064</td>   <td>0.0129</td>   <td>0.0787</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>lnmv</th>        <td>0.4559</td>    <td>0.7105</td>   <td>0.6417</td>  <td>0.5211</td>   <td>-0.9366</td>  <td>1.8485</td> \n",
       "</tr>\n",
       "</table><br/><br/><br/>id: 0x7fe6a9080df0"
      ],
      "text/plain": [
       "                          PanelOLS Estimation Summary                           \n",
       "================================================================================\n",
       "Dep. Variable:                nextret   R-squared:                        0.0058\n",
       "Estimator:                   PanelOLS   R-squared (Between):              0.0616\n",
       "No. Observations:               87431   R-squared (Within):               0.0021\n",
       "Date:                Thu, Dec 19 2024   R-squared (Overall):              0.0058\n",
       "Time:                        16:21:13   Log-likelihood                -3.521e+05\n",
       "Cov. Estimator:             Clustered                                           \n",
       "                                        F-statistic:                      51.389\n",
       "Entities:                        2035   P-value                           0.0000\n",
       "Avg Obs:                       42.964   Distribution:                F(10,87421)\n",
       "Min Obs:                       3.0000                                           \n",
       "Max Obs:                       93.000   F-statistic (robust):             1.9379\n",
       "                                        P-value                           0.0357\n",
       "Time periods:                      93   Distribution:                F(10,87421)\n",
       "Avg Obs:                       940.12                                           \n",
       "Min Obs:                       388.00                                           \n",
       "Max Obs:                       1825.0                                           \n",
       "                                                                                \n",
       "                             Parameter Estimates                              \n",
       "==============================================================================\n",
       "            Parameter  Std. Err.     T-stat    P-value    Lower CI    Upper CI\n",
       "------------------------------------------------------------------------------\n",
       "size          -0.4547     0.7001    -0.6495     0.5160     -1.8269      0.9175\n",
       "bm             1.3235     0.7998     1.6547     0.0980     -0.2442      2.8911\n",
       "return12       0.0030     0.0129     0.2281     0.8196     -0.0224      0.0283\n",
       "roa            5.3443     7.1019     0.7525     0.4517     -8.5754      19.264\n",
       "lev            0.3350     1.9527     0.1716     0.8638     -3.4923      4.1624\n",
       "ppe            0.0861     1.1849     0.0726     0.9421     -2.2364      2.4086\n",
       "intang         0.0247     1.2066     0.0205     0.9836     -2.3402      2.3897\n",
       "numanalyst    -0.0090     0.0165    -0.5461     0.5850     -0.0415      0.0234\n",
       "instown        0.0458     0.0168     2.7269     0.0064      0.0129      0.0787\n",
       "lnmv           0.4559     0.7105     0.6417     0.5211     -0.9366      1.8485\n",
       "==============================================================================\n",
       "\n",
       "\n",
       "PanelEffectsResults, id: 0x7fe6a9080df0"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "panel_data = regdata.set_index(['stkcd','date'])\n",
    "exog = panel_data[['size','bm','return12','roa','lev','ppe','intang','numanalyst','instown','lnmv']].dropna()\n",
    "endog = panel_data['nextret'].dropna()\n",
    "assert exog.index.equals(endog.index)\n",
    "model = PanelOLS(endog, exog, entity_effects=False, time_effects=False,check_rank=False)\n",
    "results = model.fit(cov_type='clustered',cluster_entity=True,cluster_time=True)\n",
    "print(results)\n",
    "from IPython.display import display\n",
    "display(results)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "      feature          VIF\n",
      "0        size  1893.288710\n",
      "1          bm     2.837783\n",
      "2    return12     1.123476\n",
      "3         roa     1.489541\n",
      "4         lev     2.932872\n",
      "5         ppe     3.269345\n",
      "6      intang     1.997825\n",
      "7  numanalyst     2.148450\n",
      "8     instown     1.790820\n",
      "9        lnmv  1942.871255\n"
     ]
    }
   ],
   "source": [
    "from statsmodels.stats.outliers_influence import variance_inflation_factor\n",
    "vif_data = pd.DataFrame()\n",
    "vif_data['feature'] = exog.columns\n",
    "vif_data['VIF'] = [variance_inflation_factor(exog.values, i) for i in range(exog.shape[1])]\n",
    "print(vif_data)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "                          PanelOLS Estimation Summary                           \n",
      "================================================================================\n",
      "Dep. Variable:                nextret   R-squared:                        0.0064\n",
      "Estimator:                   PanelOLS   R-squared (Between):             -0.0615\n",
      "No. Observations:               87431   R-squared (Within):               0.0087\n",
      "Date:                Thu, Dec 19 2024   R-squared (Overall):              0.0064\n",
      "Time:                        16:21:16   Log-likelihood                 -3.52e+05\n",
      "Cov. Estimator:             Clustered                                           \n",
      "                                        F-statistic:                      62.515\n",
      "Entities:                        2035   P-value                           0.0000\n",
      "Avg Obs:                       42.964   Distribution:                 F(9,87421)\n",
      "Min Obs:                       3.0000                                           \n",
      "Max Obs:                       93.000   F-statistic (robust):             1.8093\n",
      "                                        P-value                           0.0612\n",
      "Time periods:                      93   Distribution:                 F(9,87421)\n",
      "Avg Obs:                       940.12                                           \n",
      "Min Obs:                       388.00                                           \n",
      "Max Obs:                       1825.0                                           \n",
      "                                                                                \n",
      "                             Parameter Estimates                              \n",
      "==============================================================================\n",
      "            Parameter  Std. Err.     T-stat    P-value    Lower CI    Upper CI\n",
      "------------------------------------------------------------------------------\n",
      "size          -1.1641     0.4318    -2.6956     0.0070     -2.0104     -0.3177\n",
      "bm             1.1910     0.8037     1.4820     0.1384     -0.3842      2.7662\n",
      "return12       0.0054     0.0132     0.4129     0.6797     -0.0204      0.0312\n",
      "roa            7.0691     7.5653     0.9344     0.3501     -7.7588      21.897\n",
      "lev            1.3267     1.9255     0.6890     0.4908     -2.4474      5.1007\n",
      "ppe            0.0029     1.2533     0.0023     0.9982     -2.4535      2.4593\n",
      "intang         0.0187     1.2175     0.0154     0.9877     -2.3677      2.4051\n",
      "numanalyst     0.0468     0.0232     2.0182     0.0436      0.0014      0.0923\n",
      "instown        0.0453     0.0161     2.8242     0.0047      0.0139      0.0768\n",
      "const          25.479     9.6467     2.6412     0.0083      6.5713      44.386\n",
      "==============================================================================\n",
      "\n",
      "\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<table class=\"simpletable\">\n",
       "<caption>PanelOLS Estimation Summary</caption>\n",
       "<tr>\n",
       "  <th>Dep. Variable:</th>         <td>nextret</td>     <th>  R-squared:         </th>     <td>0.0064</td>  \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Estimator:</th>            <td>PanelOLS</td>     <th>  R-squared (Between):</th>    <td>-0.0615</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>No. Observations:</th>       <td>87431</td>      <th>  R-squared (Within):</th>     <td>0.0087</td>  \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Date:</th>             <td>Thu, Dec 19 2024</td> <th>  R-squared (Overall):</th>    <td>0.0064</td>  \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Time:</th>                 <td>16:21:16</td>     <th>  Log-likelihood     </th>    <td>-3.52e+05</td>\n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Cov. Estimator:</th>       <td>Clustered</td>    <th>                     </th>        <td></td>     \n",
       "</tr>\n",
       "<tr>\n",
       "  <th></th>                          <td></td>         <th>  F-statistic:       </th>     <td>62.515</td>  \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Entities:</th>               <td>2035</td>       <th>  P-value            </th>     <td>0.0000</td>  \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Avg Obs:</th>               <td>42.964</td>      <th>  Distribution:      </th>   <td>F(9,87421)</td>\n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Min Obs:</th>               <td>3.0000</td>      <th>                     </th>        <td></td>     \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Max Obs:</th>               <td>93.000</td>      <th>  F-statistic (robust):</th>   <td>1.8093</td>  \n",
       "</tr>\n",
       "<tr>\n",
       "  <th></th>                          <td></td>         <th>  P-value            </th>     <td>0.0612</td>  \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Time periods:</th>            <td>93</td>        <th>  Distribution:      </th>   <td>F(9,87421)</td>\n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Avg Obs:</th>               <td>940.12</td>      <th>                     </th>        <td></td>     \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Min Obs:</th>               <td>388.00</td>      <th>                     </th>        <td></td>     \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Max Obs:</th>               <td>1825.0</td>      <th>                     </th>        <td></td>     \n",
       "</tr>\n",
       "<tr>\n",
       "  <th></th>                          <td></td>         <th>                     </th>        <td></td>     \n",
       "</tr>\n",
       "</table>\n",
       "<table class=\"simpletable\">\n",
       "<caption>Parameter Estimates</caption>\n",
       "<tr>\n",
       "       <td></td>      <th>Parameter</th> <th>Std. Err.</th> <th>T-stat</th>  <th>P-value</th> <th>Lower CI</th> <th>Upper CI</th>\n",
       "</tr>\n",
       "<tr>\n",
       "  <th>size</th>        <td>-1.1641</td>   <td>0.4318</td>   <td>-2.6956</td> <td>0.0070</td>   <td>-2.0104</td>  <td>-0.3177</td>\n",
       "</tr>\n",
       "<tr>\n",
       "  <th>bm</th>          <td>1.1910</td>    <td>0.8037</td>   <td>1.4820</td>  <td>0.1384</td>   <td>-0.3842</td>  <td>2.7662</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>return12</th>    <td>0.0054</td>    <td>0.0132</td>   <td>0.4129</td>  <td>0.6797</td>   <td>-0.0204</td>  <td>0.0312</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>roa</th>         <td>7.0691</td>    <td>7.5653</td>   <td>0.9344</td>  <td>0.3501</td>   <td>-7.7588</td>  <td>21.897</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>lev</th>         <td>1.3267</td>    <td>1.9255</td>   <td>0.6890</td>  <td>0.4908</td>   <td>-2.4474</td>  <td>5.1007</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>ppe</th>         <td>0.0029</td>    <td>1.2533</td>   <td>0.0023</td>  <td>0.9982</td>   <td>-2.4535</td>  <td>2.4593</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>intang</th>      <td>0.0187</td>    <td>1.2175</td>   <td>0.0154</td>  <td>0.9877</td>   <td>-2.3677</td>  <td>2.4051</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>numanalyst</th>  <td>0.0468</td>    <td>0.0232</td>   <td>2.0182</td>  <td>0.0436</td>   <td>0.0014</td>   <td>0.0923</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>instown</th>     <td>0.0453</td>    <td>0.0161</td>   <td>2.8242</td>  <td>0.0047</td>   <td>0.0139</td>   <td>0.0768</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>const</th>       <td>25.479</td>    <td>9.6467</td>   <td>2.6412</td>  <td>0.0083</td>   <td>6.5713</td>   <td>44.386</td> \n",
       "</tr>\n",
       "</table><br/><br/><br/>id: 0x7fe69bdcd4c0"
      ],
      "text/plain": [
       "                          PanelOLS Estimation Summary                           \n",
       "================================================================================\n",
       "Dep. Variable:                nextret   R-squared:                        0.0064\n",
       "Estimator:                   PanelOLS   R-squared (Between):             -0.0615\n",
       "No. Observations:               87431   R-squared (Within):               0.0087\n",
       "Date:                Thu, Dec 19 2024   R-squared (Overall):              0.0064\n",
       "Time:                        16:21:16   Log-likelihood                 -3.52e+05\n",
       "Cov. Estimator:             Clustered                                           \n",
       "                                        F-statistic:                      62.515\n",
       "Entities:                        2035   P-value                           0.0000\n",
       "Avg Obs:                       42.964   Distribution:                 F(9,87421)\n",
       "Min Obs:                       3.0000                                           \n",
       "Max Obs:                       93.000   F-statistic (robust):             1.8093\n",
       "                                        P-value                           0.0612\n",
       "Time periods:                      93   Distribution:                 F(9,87421)\n",
       "Avg Obs:                       940.12                                           \n",
       "Min Obs:                       388.00                                           \n",
       "Max Obs:                       1825.0                                           \n",
       "                                                                                \n",
       "                             Parameter Estimates                              \n",
       "==============================================================================\n",
       "            Parameter  Std. Err.     T-stat    P-value    Lower CI    Upper CI\n",
       "------------------------------------------------------------------------------\n",
       "size          -1.1641     0.4318    -2.6956     0.0070     -2.0104     -0.3177\n",
       "bm             1.1910     0.8037     1.4820     0.1384     -0.3842      2.7662\n",
       "return12       0.0054     0.0132     0.4129     0.6797     -0.0204      0.0312\n",
       "roa            7.0691     7.5653     0.9344     0.3501     -7.7588      21.897\n",
       "lev            1.3267     1.9255     0.6890     0.4908     -2.4474      5.1007\n",
       "ppe            0.0029     1.2533     0.0023     0.9982     -2.4535      2.4593\n",
       "intang         0.0187     1.2175     0.0154     0.9877     -2.3677      2.4051\n",
       "numanalyst     0.0468     0.0232     2.0182     0.0436      0.0014      0.0923\n",
       "instown        0.0453     0.0161     2.8242     0.0047      0.0139      0.0768\n",
       "const          25.479     9.6467     2.6412     0.0083      6.5713      44.386\n",
       "==============================================================================\n",
       "\n",
       "\n",
       "PanelEffectsResults, id: 0x7fe69bdcd4c0"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "exog = panel_data[['size','bm','return12','roa','lev','ppe','intang','numanalyst','instown']].dropna()\n",
    "exog = exog.assign(const=1)\n",
    "model = PanelOLS(endog, exog, entity_effects=False, time_effects=False,check_rank=False)\n",
    "results = model.fit(cov_type='clustered',cluster_entity=True,cluster_time=True)\n",
    "print(results)\n",
    "from IPython.display import display\n",
    "display(results)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "      feature         VIF\n",
      "0        size    1.451716\n",
      "1          bm    1.140700\n",
      "2    return12    1.097550\n",
      "3         roa    1.140259\n",
      "4         lev    1.211230\n",
      "5         ppe    1.078773\n",
      "6      intang    1.014297\n",
      "7  numanalyst    1.526485\n",
      "8     instown    1.216519\n",
      "9       const  818.241335\n"
     ]
    }
   ],
   "source": [
    "vif_data = pd.DataFrame()\n",
    "vif_data['feature'] = exog.columns\n",
    "vif_data['VIF'] = [variance_inflation_factor(exog.values, i) for i in range(exog.shape[1])]\n",
    "print(vif_data)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "                          PanelOLS Estimation Summary                           \n",
      "================================================================================\n",
      "Dep. Variable:                nextret   R-squared:                        0.0124\n",
      "Estimator:                   PanelOLS   R-squared (Between):             -1.8915\n",
      "No. Observations:               87431   R-squared (Within):               0.0161\n",
      "Date:                Thu, Dec 19 2024   R-squared (Overall):             -0.0476\n",
      "Time:                        16:21:20   Log-likelihood                -3.305e+05\n",
      "Cov. Estimator:             Clustered                                           \n",
      "                                        F-statistic:                      118.74\n",
      "Entities:                        2035   P-value                           0.0000\n",
      "Avg Obs:                       42.964   Distribution:                 F(9,85295)\n",
      "Min Obs:                       3.0000                                           \n",
      "Max Obs:                       93.000   F-statistic (robust):             14.928\n",
      "                                        P-value                           0.0000\n",
      "Time periods:                      93   Distribution:                 F(9,85295)\n",
      "Avg Obs:                       940.12                                           \n",
      "Min Obs:                       388.00                                           \n",
      "Max Obs:                       1825.0                                           \n",
      "                                                                                \n",
      "                             Parameter Estimates                              \n",
      "==============================================================================\n",
      "            Parameter  Std. Err.     T-stat    P-value    Lower CI    Upper CI\n",
      "------------------------------------------------------------------------------\n",
      "size          -4.0052     0.4285    -9.3460     0.0000     -4.8451     -3.1652\n",
      "bm             0.2443     0.8113     0.3011     0.7633     -1.3458      1.8344\n",
      "return12      -0.0026     0.0027    -0.9703     0.3319     -0.0079      0.0027\n",
      "roa            5.3265     3.0609     1.7402     0.0818     -0.6728      11.326\n",
      "lev           -1.6915     0.6603    -2.5618     0.0104     -2.9856     -0.3974\n",
      "ppe           -0.8432     1.0744    -0.7848     0.4326     -2.9489      1.2626\n",
      "intang         2.3811     2.5696     0.9267     0.3541     -2.6552      7.4174\n",
      "numanalyst     0.0116     0.0162     0.7181     0.4727     -0.0201      0.0434\n",
      "instown        0.0039     0.0164     0.2407     0.8098     -0.0281      0.0360\n",
      "const          91.284     9.8191     9.2966     0.0000      72.038      110.53\n",
      "==============================================================================\n",
      "\n",
      "F-test for Poolability: 25.360\n",
      "P-value: 0.0000\n",
      "Distribution: F(2126,85295)\n",
      "\n",
      "Included effects: Entity, Time\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<table class=\"simpletable\">\n",
       "<caption>PanelOLS Estimation Summary</caption>\n",
       "<tr>\n",
       "  <th>Dep. Variable:</th>         <td>nextret</td>     <th>  R-squared:         </th>     <td>0.0124</td>  \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Estimator:</th>            <td>PanelOLS</td>     <th>  R-squared (Between):</th>    <td>-1.8915</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>No. Observations:</th>       <td>87431</td>      <th>  R-squared (Within):</th>     <td>0.0161</td>  \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Date:</th>             <td>Thu, Dec 19 2024</td> <th>  R-squared (Overall):</th>    <td>-0.0476</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Time:</th>                 <td>16:21:20</td>     <th>  Log-likelihood     </th>   <td>-3.305e+05</td>\n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Cov. Estimator:</th>       <td>Clustered</td>    <th>                     </th>        <td></td>     \n",
       "</tr>\n",
       "<tr>\n",
       "  <th></th>                          <td></td>         <th>  F-statistic:       </th>     <td>118.74</td>  \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Entities:</th>               <td>2035</td>       <th>  P-value            </th>     <td>0.0000</td>  \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Avg Obs:</th>               <td>42.964</td>      <th>  Distribution:      </th>   <td>F(9,85295)</td>\n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Min Obs:</th>               <td>3.0000</td>      <th>                     </th>        <td></td>     \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Max Obs:</th>               <td>93.000</td>      <th>  F-statistic (robust):</th>   <td>14.928</td>  \n",
       "</tr>\n",
       "<tr>\n",
       "  <th></th>                          <td></td>         <th>  P-value            </th>     <td>0.0000</td>  \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Time periods:</th>            <td>93</td>        <th>  Distribution:      </th>   <td>F(9,85295)</td>\n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Avg Obs:</th>               <td>940.12</td>      <th>                     </th>        <td></td>     \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Min Obs:</th>               <td>388.00</td>      <th>                     </th>        <td></td>     \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>Max Obs:</th>               <td>1825.0</td>      <th>                     </th>        <td></td>     \n",
       "</tr>\n",
       "<tr>\n",
       "  <th></th>                          <td></td>         <th>                     </th>        <td></td>     \n",
       "</tr>\n",
       "</table>\n",
       "<table class=\"simpletable\">\n",
       "<caption>Parameter Estimates</caption>\n",
       "<tr>\n",
       "       <td></td>      <th>Parameter</th> <th>Std. Err.</th> <th>T-stat</th>  <th>P-value</th> <th>Lower CI</th> <th>Upper CI</th>\n",
       "</tr>\n",
       "<tr>\n",
       "  <th>size</th>        <td>-4.0052</td>   <td>0.4285</td>   <td>-9.3460</td> <td>0.0000</td>   <td>-4.8451</td>  <td>-3.1652</td>\n",
       "</tr>\n",
       "<tr>\n",
       "  <th>bm</th>          <td>0.2443</td>    <td>0.8113</td>   <td>0.3011</td>  <td>0.7633</td>   <td>-1.3458</td>  <td>1.8344</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>return12</th>    <td>-0.0026</td>   <td>0.0027</td>   <td>-0.9703</td> <td>0.3319</td>   <td>-0.0079</td>  <td>0.0027</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>roa</th>         <td>5.3265</td>    <td>3.0609</td>   <td>1.7402</td>  <td>0.0818</td>   <td>-0.6728</td>  <td>11.326</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>lev</th>         <td>-1.6915</td>   <td>0.6603</td>   <td>-2.5618</td> <td>0.0104</td>   <td>-2.9856</td>  <td>-0.3974</td>\n",
       "</tr>\n",
       "<tr>\n",
       "  <th>ppe</th>         <td>-0.8432</td>   <td>1.0744</td>   <td>-0.7848</td> <td>0.4326</td>   <td>-2.9489</td>  <td>1.2626</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>intang</th>      <td>2.3811</td>    <td>2.5696</td>   <td>0.9267</td>  <td>0.3541</td>   <td>-2.6552</td>  <td>7.4174</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>numanalyst</th>  <td>0.0116</td>    <td>0.0162</td>   <td>0.7181</td>  <td>0.4727</td>   <td>-0.0201</td>  <td>0.0434</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>instown</th>     <td>0.0039</td>    <td>0.0164</td>   <td>0.2407</td>  <td>0.8098</td>   <td>-0.0281</td>  <td>0.0360</td> \n",
       "</tr>\n",
       "<tr>\n",
       "  <th>const</th>       <td>91.284</td>    <td>9.8191</td>   <td>9.2966</td>  <td>0.0000</td>   <td>72.038</td>   <td>110.53</td> \n",
       "</tr>\n",
       "</table><br/><br/>F-test for Poolability: 25.360<br/>P-value: 0.0000<br/>Distribution: F(2126,85295)<br/><br/>Included effects: Entity, Time<br/>id: 0x7fe69bd0f7f0"
      ],
      "text/plain": [
       "                          PanelOLS Estimation Summary                           \n",
       "================================================================================\n",
       "Dep. Variable:                nextret   R-squared:                        0.0124\n",
       "Estimator:                   PanelOLS   R-squared (Between):             -1.8915\n",
       "No. Observations:               87431   R-squared (Within):               0.0161\n",
       "Date:                Thu, Dec 19 2024   R-squared (Overall):             -0.0476\n",
       "Time:                        16:21:20   Log-likelihood                -3.305e+05\n",
       "Cov. Estimator:             Clustered                                           \n",
       "                                        F-statistic:                      118.74\n",
       "Entities:                        2035   P-value                           0.0000\n",
       "Avg Obs:                       42.964   Distribution:                 F(9,85295)\n",
       "Min Obs:                       3.0000                                           \n",
       "Max Obs:                       93.000   F-statistic (robust):             14.928\n",
       "                                        P-value                           0.0000\n",
       "Time periods:                      93   Distribution:                 F(9,85295)\n",
       "Avg Obs:                       940.12                                           \n",
       "Min Obs:                       388.00                                           \n",
       "Max Obs:                       1825.0                                           \n",
       "                                                                                \n",
       "                             Parameter Estimates                              \n",
       "==============================================================================\n",
       "            Parameter  Std. Err.     T-stat    P-value    Lower CI    Upper CI\n",
       "------------------------------------------------------------------------------\n",
       "size          -4.0052     0.4285    -9.3460     0.0000     -4.8451     -3.1652\n",
       "bm             0.2443     0.8113     0.3011     0.7633     -1.3458      1.8344\n",
       "return12      -0.0026     0.0027    -0.9703     0.3319     -0.0079      0.0027\n",
       "roa            5.3265     3.0609     1.7402     0.0818     -0.6728      11.326\n",
       "lev           -1.6915     0.6603    -2.5618     0.0104     -2.9856     -0.3974\n",
       "ppe           -0.8432     1.0744    -0.7848     0.4326     -2.9489      1.2626\n",
       "intang         2.3811     2.5696     0.9267     0.3541     -2.6552      7.4174\n",
       "numanalyst     0.0116     0.0162     0.7181     0.4727     -0.0201      0.0434\n",
       "instown        0.0039     0.0164     0.2407     0.8098     -0.0281      0.0360\n",
       "const          91.284     9.8191     9.2966     0.0000      72.038      110.53\n",
       "==============================================================================\n",
       "\n",
       "F-test for Poolability: 25.360\n",
       "P-value: 0.0000\n",
       "Distribution: F(2126,85295)\n",
       "\n",
       "Included effects: Entity, Time\n",
       "PanelEffectsResults, id: 0x7fe69bd0f7f0"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "model = PanelOLS(endog, exog, entity_effects=True, time_effects=True,check_rank=False)\n",
    "results = model.fit(cov_type='clustered',cluster_entity=True,cluster_time=True)\n",
    "print(results)\n",
    "from IPython.display import display\n",
    "display(results)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>晨光文具（603899.SH）</th>\n",
       "      <th>小熊电器（002959.SZ）</th>\n",
       "      <th>中炬高新（600872.SH）</th>\n",
       "      <th>中顺洁柔（002511.SZ）</th>\n",
       "      <th>煌上煌（002695.SZ）</th>\n",
       "      <th>良品铺子（603719.SH）</th>\n",
       "      <th>洽洽食品（002557.SZ）</th>\n",
       "      <th>三只松鼠（300783.SZ）</th>\n",
       "      <th>桃李面包（603866.SH)</th>\n",
       "      <th>西麦食品（002956.SZ）</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>时间</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2016-01-01</th>\n",
       "      <td>3888967.80</td>\n",
       "      <td>4.651291e+07</td>\n",
       "      <td>289734.74</td>\n",
       "      <td>1.147106e+07</td>\n",
       "      <td>1026754.11</td>\n",
       "      <td>6.500943e+07</td>\n",
       "      <td>14621424.00</td>\n",
       "      <td>1.451850e+08</td>\n",
       "      <td>NaN</td>\n",
       "      <td>4895641.68</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-02-01</th>\n",
       "      <td>3983190.45</td>\n",
       "      <td>3.084200e+07</td>\n",
       "      <td>152692.14</td>\n",
       "      <td>7.999039e+06</td>\n",
       "      <td>838209.68</td>\n",
       "      <td>1.830529e+07</td>\n",
       "      <td>3167168.94</td>\n",
       "      <td>2.378633e+07</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1011038.61</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-03-01</th>\n",
       "      <td>6395686.99</td>\n",
       "      <td>4.216771e+07</td>\n",
       "      <td>228973.45</td>\n",
       "      <td>1.437793e+07</td>\n",
       "      <td>536719.74</td>\n",
       "      <td>1.378228e+07</td>\n",
       "      <td>4041073.85</td>\n",
       "      <td>2.468811e+07</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1778428.59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-04-01</th>\n",
       "      <td>4968614.43</td>\n",
       "      <td>3.279538e+07</td>\n",
       "      <td>207874.80</td>\n",
       "      <td>7.701460e+06</td>\n",
       "      <td>405520.30</td>\n",
       "      <td>1.237670e+07</td>\n",
       "      <td>4993164.26</td>\n",
       "      <td>2.503637e+07</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1305881.85</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-05-01</th>\n",
       "      <td>6566980.86</td>\n",
       "      <td>3.115259e+07</td>\n",
       "      <td>220956.36</td>\n",
       "      <td>1.358630e+07</td>\n",
       "      <td>580470.85</td>\n",
       "      <td>2.021406e+07</td>\n",
       "      <td>4658511.88</td>\n",
       "      <td>4.073393e+07</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1453825.67</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-06-01</th>\n",
       "      <td>8569214.02</td>\n",
       "      <td>3.734497e+07</td>\n",
       "      <td>282178.17</td>\n",
       "      <td>2.296005e+07</td>\n",
       "      <td>601939.53</td>\n",
       "      <td>2.506062e+07</td>\n",
       "      <td>7785063.37</td>\n",
       "      <td>5.803390e+07</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3702526.81</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-07-01</th>\n",
       "      <td>7131432.67</td>\n",
       "      <td>2.971958e+07</td>\n",
       "      <td>146074.31</td>\n",
       "      <td>1.457645e+07</td>\n",
       "      <td>485289.67</td>\n",
       "      <td>1.853901e+07</td>\n",
       "      <td>4788736.43</td>\n",
       "      <td>4.887414e+07</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1475463.60</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-08-01</th>\n",
       "      <td>9430772.28</td>\n",
       "      <td>3.114247e+07</td>\n",
       "      <td>123150.87</td>\n",
       "      <td>1.490755e+07</td>\n",
       "      <td>330136.28</td>\n",
       "      <td>3.334064e+07</td>\n",
       "      <td>5281617.31</td>\n",
       "      <td>5.213373e+07</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1149121.86</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-09-01</th>\n",
       "      <td>11088238.05</td>\n",
       "      <td>3.488169e+07</td>\n",
       "      <td>170409.93</td>\n",
       "      <td>9.727400e+06</td>\n",
       "      <td>434545.47</td>\n",
       "      <td>3.154732e+07</td>\n",
       "      <td>5563860.99</td>\n",
       "      <td>1.106675e+08</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2254384.51</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-10-01</th>\n",
       "      <td>12570332.00</td>\n",
       "      <td>4.482060e+07</td>\n",
       "      <td>191198.60</td>\n",
       "      <td>7.039961e+06</td>\n",
       "      <td>589759.42</td>\n",
       "      <td>2.700793e+07</td>\n",
       "      <td>6766032.30</td>\n",
       "      <td>8.143055e+07</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2008006.64</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-11-01</th>\n",
       "      <td>17850507.19</td>\n",
       "      <td>7.539391e+07</td>\n",
       "      <td>263344.66</td>\n",
       "      <td>1.688637e+07</td>\n",
       "      <td>1895977.95</td>\n",
       "      <td>5.959237e+07</td>\n",
       "      <td>9121545.82</td>\n",
       "      <td>1.238701e+08</td>\n",
       "      <td>NaN</td>\n",
       "      <td>4360516.81</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-12-01</th>\n",
       "      <td>15169044.24</td>\n",
       "      <td>7.208727e+07</td>\n",
       "      <td>239269.94</td>\n",
       "      <td>1.475233e+07</td>\n",
       "      <td>1218218.12</td>\n",
       "      <td>4.527735e+07</td>\n",
       "      <td>8004816.85</td>\n",
       "      <td>1.674411e+08</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2558598.42</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-01-01</th>\n",
       "      <td>8951076.86</td>\n",
       "      <td>5.748715e+07</td>\n",
       "      <td>258845.36</td>\n",
       "      <td>1.209020e+07</td>\n",
       "      <td>694361.41</td>\n",
       "      <td>8.111691e+07</td>\n",
       "      <td>13180473.77</td>\n",
       "      <td>3.525155e+08</td>\n",
       "      <td>NaN</td>\n",
       "      <td>4184639.53</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-02-01</th>\n",
       "      <td>17515406.23</td>\n",
       "      <td>5.742213e+07</td>\n",
       "      <td>208849.92</td>\n",
       "      <td>1.792365e+07</td>\n",
       "      <td>223566.13</td>\n",
       "      <td>2.314632e+07</td>\n",
       "      <td>2962777.33</td>\n",
       "      <td>6.495018e+07</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2526192.90</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-03-01</th>\n",
       "      <td>16853919.22</td>\n",
       "      <td>6.155365e+07</td>\n",
       "      <td>372685.33</td>\n",
       "      <td>2.077881e+07</td>\n",
       "      <td>462044.94</td>\n",
       "      <td>3.148311e+07</td>\n",
       "      <td>7036553.89</td>\n",
       "      <td>8.219451e+07</td>\n",
       "      <td>58943.60</td>\n",
       "      <td>4431066.65</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-04-01</th>\n",
       "      <td>10546912.27</td>\n",
       "      <td>4.254694e+07</td>\n",
       "      <td>363450.35</td>\n",
       "      <td>2.070807e+07</td>\n",
       "      <td>616496.63</td>\n",
       "      <td>2.905200e+07</td>\n",
       "      <td>4858658.78</td>\n",
       "      <td>7.049686e+07</td>\n",
       "      <td>68673.90</td>\n",
       "      <td>2578942.14</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-05-01</th>\n",
       "      <td>10892388.69</td>\n",
       "      <td>4.375332e+07</td>\n",
       "      <td>476125.73</td>\n",
       "      <td>2.403378e+07</td>\n",
       "      <td>402114.04</td>\n",
       "      <td>3.532685e+07</td>\n",
       "      <td>4809293.34</td>\n",
       "      <td>8.164086e+07</td>\n",
       "      <td>112907.00</td>\n",
       "      <td>3703257.43</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-06-01</th>\n",
       "      <td>14181021.20</td>\n",
       "      <td>5.374962e+07</td>\n",
       "      <td>983223.04</td>\n",
       "      <td>3.951933e+07</td>\n",
       "      <td>2664453.29</td>\n",
       "      <td>4.758075e+07</td>\n",
       "      <td>7130930.78</td>\n",
       "      <td>1.106449e+08</td>\n",
       "      <td>97885.85</td>\n",
       "      <td>5086718.81</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-07-01</th>\n",
       "      <td>11322075.08</td>\n",
       "      <td>4.401432e+07</td>\n",
       "      <td>608151.58</td>\n",
       "      <td>1.960669e+07</td>\n",
       "      <td>673499.25</td>\n",
       "      <td>3.830022e+07</td>\n",
       "      <td>4709540.42</td>\n",
       "      <td>8.982425e+07</td>\n",
       "      <td>98812.14</td>\n",
       "      <td>2781829.32</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-08-01</th>\n",
       "      <td>15096744.60</td>\n",
       "      <td>4.885543e+07</td>\n",
       "      <td>680348.00</td>\n",
       "      <td>2.137602e+07</td>\n",
       "      <td>599536.51</td>\n",
       "      <td>5.044235e+07</td>\n",
       "      <td>6999010.09</td>\n",
       "      <td>9.652081e+07</td>\n",
       "      <td>132444.56</td>\n",
       "      <td>3177223.30</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-09-01</th>\n",
       "      <td>16886365.10</td>\n",
       "      <td>5.226013e+07</td>\n",
       "      <td>733034.58</td>\n",
       "      <td>2.818010e+07</td>\n",
       "      <td>876467.89</td>\n",
       "      <td>5.593115e+07</td>\n",
       "      <td>11086589.08</td>\n",
       "      <td>1.511205e+08</td>\n",
       "      <td>839881.57</td>\n",
       "      <td>4062449.80</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-10-01</th>\n",
       "      <td>15683187.11</td>\n",
       "      <td>5.776405e+07</td>\n",
       "      <td>830260.75</td>\n",
       "      <td>2.952577e+07</td>\n",
       "      <td>753082.08</td>\n",
       "      <td>5.055736e+07</td>\n",
       "      <td>11436684.80</td>\n",
       "      <td>1.039243e+08</td>\n",
       "      <td>168190.70</td>\n",
       "      <td>4390407.14</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-11-01</th>\n",
       "      <td>22071799.53</td>\n",
       "      <td>9.914510e+07</td>\n",
       "      <td>1423714.78</td>\n",
       "      <td>5.326742e+07</td>\n",
       "      <td>1479380.65</td>\n",
       "      <td>1.005754e+08</td>\n",
       "      <td>19507212.54</td>\n",
       "      <td>1.943640e+08</td>\n",
       "      <td>162105.00</td>\n",
       "      <td>6828144.74</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-12-01</th>\n",
       "      <td>18986893.98</td>\n",
       "      <td>1.008658e+08</td>\n",
       "      <td>1064238.08</td>\n",
       "      <td>2.902136e+07</td>\n",
       "      <td>730355.31</td>\n",
       "      <td>1.068353e+08</td>\n",
       "      <td>19879781.02</td>\n",
       "      <td>1.945734e+08</td>\n",
       "      <td>135149.00</td>\n",
       "      <td>4818837.17</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-01</th>\n",
       "      <td>17147911.26</td>\n",
       "      <td>9.295396e+07</td>\n",
       "      <td>1247542.08</td>\n",
       "      <td>2.937322e+07</td>\n",
       "      <td>620770.94</td>\n",
       "      <td>1.548582e+08</td>\n",
       "      <td>41002599.47</td>\n",
       "      <td>3.546329e+08</td>\n",
       "      <td>202474.00</td>\n",
       "      <td>6366694.38</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-02-01</th>\n",
       "      <td>10647797.71</td>\n",
       "      <td>6.336129e+07</td>\n",
       "      <td>885144.15</td>\n",
       "      <td>2.342986e+07</td>\n",
       "      <td>449552.09</td>\n",
       "      <td>1.039350e+08</td>\n",
       "      <td>26836440.68</td>\n",
       "      <td>3.566944e+08</td>\n",
       "      <td>90810.00</td>\n",
       "      <td>4471913.69</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-01</th>\n",
       "      <td>22169161.22</td>\n",
       "      <td>7.761548e+07</td>\n",
       "      <td>1063120.23</td>\n",
       "      <td>3.999999e+07</td>\n",
       "      <td>507864.95</td>\n",
       "      <td>5.533160e+07</td>\n",
       "      <td>10031954.49</td>\n",
       "      <td>9.688420e+07</td>\n",
       "      <td>243550.70</td>\n",
       "      <td>5068461.09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-04-01</th>\n",
       "      <td>15952053.34</td>\n",
       "      <td>6.127800e+07</td>\n",
       "      <td>1249003.47</td>\n",
       "      <td>3.781165e+07</td>\n",
       "      <td>635705.78</td>\n",
       "      <td>6.057576e+07</td>\n",
       "      <td>11828274.57</td>\n",
       "      <td>8.838197e+07</td>\n",
       "      <td>122876.40</td>\n",
       "      <td>4121021.60</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-05-01</th>\n",
       "      <td>17878989.93</td>\n",
       "      <td>5.829158e+07</td>\n",
       "      <td>1012471.68</td>\n",
       "      <td>4.053782e+07</td>\n",
       "      <td>567685.47</td>\n",
       "      <td>7.895265e+07</td>\n",
       "      <td>10079232.02</td>\n",
       "      <td>1.088716e+08</td>\n",
       "      <td>170535.54</td>\n",
       "      <td>5018238.62</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-01</th>\n",
       "      <td>20964002.78</td>\n",
       "      <td>6.464010e+07</td>\n",
       "      <td>1387674.19</td>\n",
       "      <td>5.200859e+07</td>\n",
       "      <td>807783.00</td>\n",
       "      <td>1.033449e+08</td>\n",
       "      <td>14268927.55</td>\n",
       "      <td>1.476170e+08</td>\n",
       "      <td>185243.75</td>\n",
       "      <td>5566678.46</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-07-01</th>\n",
       "      <td>19026531.75</td>\n",
       "      <td>5.734235e+07</td>\n",
       "      <td>1008709.69</td>\n",
       "      <td>4.090617e+07</td>\n",
       "      <td>444603.15</td>\n",
       "      <td>8.554761e+07</td>\n",
       "      <td>8855499.14</td>\n",
       "      <td>1.405095e+08</td>\n",
       "      <td>129131.91</td>\n",
       "      <td>3757235.94</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-08-01</th>\n",
       "      <td>26553972.53</td>\n",
       "      <td>6.188506e+07</td>\n",
       "      <td>1528790.10</td>\n",
       "      <td>4.464582e+07</td>\n",
       "      <td>460561.07</td>\n",
       "      <td>1.058474e+08</td>\n",
       "      <td>10497242.05</td>\n",
       "      <td>1.463415e+08</td>\n",
       "      <td>357030.86</td>\n",
       "      <td>4931431.03</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-09-01</th>\n",
       "      <td>27248237.15</td>\n",
       "      <td>7.219464e+07</td>\n",
       "      <td>2008444.09</td>\n",
       "      <td>4.108136e+07</td>\n",
       "      <td>634036.64</td>\n",
       "      <td>1.173660e+08</td>\n",
       "      <td>13027497.47</td>\n",
       "      <td>2.285668e+08</td>\n",
       "      <td>1141447.58</td>\n",
       "      <td>6082717.06</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-10-01</th>\n",
       "      <td>24925822.54</td>\n",
       "      <td>8.907700e+07</td>\n",
       "      <td>1424592.15</td>\n",
       "      <td>4.796346e+07</td>\n",
       "      <td>717587.87</td>\n",
       "      <td>1.006851e+08</td>\n",
       "      <td>14688233.70</td>\n",
       "      <td>1.873631e+08</td>\n",
       "      <td>143998.67</td>\n",
       "      <td>6457397.97</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-11-01</th>\n",
       "      <td>34620424.51</td>\n",
       "      <td>1.337372e+08</td>\n",
       "      <td>2127590.47</td>\n",
       "      <td>8.943613e+07</td>\n",
       "      <td>903627.68</td>\n",
       "      <td>1.758735e+08</td>\n",
       "      <td>25355075.72</td>\n",
       "      <td>4.011374e+08</td>\n",
       "      <td>210284.87</td>\n",
       "      <td>9082604.28</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-12-01</th>\n",
       "      <td>28068759.17</td>\n",
       "      <td>1.401141e+08</td>\n",
       "      <td>2039238.04</td>\n",
       "      <td>5.946535e+07</td>\n",
       "      <td>699843.26</td>\n",
       "      <td>1.466370e+08</td>\n",
       "      <td>13898988.21</td>\n",
       "      <td>4.251038e+08</td>\n",
       "      <td>215326.54</td>\n",
       "      <td>6192150.74</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-01-01</th>\n",
       "      <td>21637936.54</td>\n",
       "      <td>1.356885e+08</td>\n",
       "      <td>2382739.88</td>\n",
       "      <td>4.745479e+07</td>\n",
       "      <td>1085282.91</td>\n",
       "      <td>1.549410e+08</td>\n",
       "      <td>54077660.57</td>\n",
       "      <td>8.217419e+08</td>\n",
       "      <td>187822.25</td>\n",
       "      <td>9078538.88</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-01</th>\n",
       "      <td>23052561.21</td>\n",
       "      <td>9.702389e+07</td>\n",
       "      <td>968000.01</td>\n",
       "      <td>3.864791e+07</td>\n",
       "      <td>440641.24</td>\n",
       "      <td>4.159209e+07</td>\n",
       "      <td>8712560.30</td>\n",
       "      <td>1.680413e+08</td>\n",
       "      <td>160033.99</td>\n",
       "      <td>4322123.96</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-03-01</th>\n",
       "      <td>26777738.04</td>\n",
       "      <td>1.190183e+08</td>\n",
       "      <td>1637339.55</td>\n",
       "      <td>5.448896e+07</td>\n",
       "      <td>528716.41</td>\n",
       "      <td>8.793521e+07</td>\n",
       "      <td>10283604.25</td>\n",
       "      <td>2.197355e+08</td>\n",
       "      <td>334341.15</td>\n",
       "      <td>6171154.21</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-04-01</th>\n",
       "      <td>27054683.92</td>\n",
       "      <td>9.196725e+07</td>\n",
       "      <td>1377222.59</td>\n",
       "      <td>4.864754e+07</td>\n",
       "      <td>396088.06</td>\n",
       "      <td>9.116047e+07</td>\n",
       "      <td>9426843.27</td>\n",
       "      <td>2.387024e+08</td>\n",
       "      <td>318103.74</td>\n",
       "      <td>5155999.85</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-05-01</th>\n",
       "      <td>24828345.84</td>\n",
       "      <td>8.457023e+07</td>\n",
       "      <td>1601943.78</td>\n",
       "      <td>5.766876e+07</td>\n",
       "      <td>427504.96</td>\n",
       "      <td>1.011439e+08</td>\n",
       "      <td>20811257.76</td>\n",
       "      <td>1.941223e+08</td>\n",
       "      <td>425468.96</td>\n",
       "      <td>5165863.71</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-06-01</th>\n",
       "      <td>29443397.45</td>\n",
       "      <td>8.879800e+07</td>\n",
       "      <td>2740859.25</td>\n",
       "      <td>8.395118e+07</td>\n",
       "      <td>764963.10</td>\n",
       "      <td>1.400473e+08</td>\n",
       "      <td>12379133.60</td>\n",
       "      <td>3.008372e+08</td>\n",
       "      <td>373792.22</td>\n",
       "      <td>7186388.04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-07-01</th>\n",
       "      <td>25420417.29</td>\n",
       "      <td>7.216634e+07</td>\n",
       "      <td>1673981.23</td>\n",
       "      <td>4.636818e+07</td>\n",
       "      <td>482969.78</td>\n",
       "      <td>1.168565e+08</td>\n",
       "      <td>8999492.37</td>\n",
       "      <td>3.118936e+08</td>\n",
       "      <td>251034.23</td>\n",
       "      <td>4142013.36</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-08-01</th>\n",
       "      <td>30851202.25</td>\n",
       "      <td>8.431632e+07</td>\n",
       "      <td>2396049.42</td>\n",
       "      <td>4.867918e+07</td>\n",
       "      <td>430548.61</td>\n",
       "      <td>1.343693e+08</td>\n",
       "      <td>12566450.14</td>\n",
       "      <td>2.897814e+08</td>\n",
       "      <td>1059941.37</td>\n",
       "      <td>4790982.07</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-09-01</th>\n",
       "      <td>31905691.15</td>\n",
       "      <td>1.012248e+08</td>\n",
       "      <td>2488161.93</td>\n",
       "      <td>5.475702e+07</td>\n",
       "      <td>561772.71</td>\n",
       "      <td>1.574726e+08</td>\n",
       "      <td>15843970.14</td>\n",
       "      <td>3.828231e+08</td>\n",
       "      <td>3364985.97</td>\n",
       "      <td>6178350.48</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-10-01</th>\n",
       "      <td>29546268.54</td>\n",
       "      <td>1.125631e+08</td>\n",
       "      <td>2252948.50</td>\n",
       "      <td>5.447234e+07</td>\n",
       "      <td>494689.58</td>\n",
       "      <td>1.476621e+08</td>\n",
       "      <td>16382573.81</td>\n",
       "      <td>4.027667e+08</td>\n",
       "      <td>192528.95</td>\n",
       "      <td>6075546.27</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-11-01</th>\n",
       "      <td>48745114.29</td>\n",
       "      <td>1.566022e+08</td>\n",
       "      <td>4550210.70</td>\n",
       "      <td>1.086174e+08</td>\n",
       "      <td>689192.12</td>\n",
       "      <td>2.458210e+08</td>\n",
       "      <td>23244315.86</td>\n",
       "      <td>7.232330e+08</td>\n",
       "      <td>277713.70</td>\n",
       "      <td>9717462.41</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-12-01</th>\n",
       "      <td>38623269.58</td>\n",
       "      <td>1.659758e+08</td>\n",
       "      <td>4633748.21</td>\n",
       "      <td>6.406288e+07</td>\n",
       "      <td>604484.32</td>\n",
       "      <td>2.023631e+08</td>\n",
       "      <td>25073062.68</td>\n",
       "      <td>7.206704e+08</td>\n",
       "      <td>292181.08</td>\n",
       "      <td>6544009.20</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-01-01</th>\n",
       "      <td>19792630.13</td>\n",
       "      <td>1.345156e+08</td>\n",
       "      <td>4278226.65</td>\n",
       "      <td>5.048257e+07</td>\n",
       "      <td>998253.81</td>\n",
       "      <td>3.014330e+08</td>\n",
       "      <td>53940633.59</td>\n",
       "      <td>1.377241e+09</td>\n",
       "      <td>224556.03</td>\n",
       "      <td>7596959.88</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-02-01</th>\n",
       "      <td>30339434.80</td>\n",
       "      <td>1.461747e+08</td>\n",
       "      <td>2335524.15</td>\n",
       "      <td>6.083017e+07</td>\n",
       "      <td>2142551.15</td>\n",
       "      <td>9.908322e+07</td>\n",
       "      <td>14434167.52</td>\n",
       "      <td>4.669730e+08</td>\n",
       "      <td>1839816.82</td>\n",
       "      <td>6999141.89</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-03-01</th>\n",
       "      <td>45873416.64</td>\n",
       "      <td>1.746529e+08</td>\n",
       "      <td>4202302.64</td>\n",
       "      <td>7.891944e+07</td>\n",
       "      <td>2337639.42</td>\n",
       "      <td>1.173447e+08</td>\n",
       "      <td>16837972.14</td>\n",
       "      <td>5.289774e+08</td>\n",
       "      <td>1458818.39</td>\n",
       "      <td>8621983.82</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-04-01</th>\n",
       "      <td>42709008.96</td>\n",
       "      <td>1.495834e+08</td>\n",
       "      <td>4577182.53</td>\n",
       "      <td>6.558401e+07</td>\n",
       "      <td>1511023.31</td>\n",
       "      <td>1.337210e+08</td>\n",
       "      <td>17443022.21</td>\n",
       "      <td>4.787543e+08</td>\n",
       "      <td>1148127.38</td>\n",
       "      <td>8476046.53</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-05-01</th>\n",
       "      <td>41280309.11</td>\n",
       "      <td>1.310139e+08</td>\n",
       "      <td>4723889.60</td>\n",
       "      <td>6.202557e+07</td>\n",
       "      <td>1262891.47</td>\n",
       "      <td>1.488824e+08</td>\n",
       "      <td>14005750.93</td>\n",
       "      <td>4.440483e+08</td>\n",
       "      <td>798636.28</td>\n",
       "      <td>8540964.70</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-06-01</th>\n",
       "      <td>49896984.16</td>\n",
       "      <td>1.605210e+08</td>\n",
       "      <td>10828615.86</td>\n",
       "      <td>1.239588e+08</td>\n",
       "      <td>1246652.58</td>\n",
       "      <td>2.054618e+08</td>\n",
       "      <td>18478468.04</td>\n",
       "      <td>5.835726e+08</td>\n",
       "      <td>1503478.01</td>\n",
       "      <td>11706599.62</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-07-01</th>\n",
       "      <td>41215778.36</td>\n",
       "      <td>1.136772e+08</td>\n",
       "      <td>4387751.38</td>\n",
       "      <td>6.388686e+07</td>\n",
       "      <td>610463.21</td>\n",
       "      <td>1.783761e+08</td>\n",
       "      <td>16593340.83</td>\n",
       "      <td>3.007737e+08</td>\n",
       "      <td>631233.47</td>\n",
       "      <td>6767988.81</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            晨光文具（603899.SH）  小熊电器（002959.SZ）  中炬高新（600872.SH）  \\\n",
       "时间                                                              \n",
       "2016-01-01       3888967.80     4.651291e+07        289734.74   \n",
       "2016-02-01       3983190.45     3.084200e+07        152692.14   \n",
       "2016-03-01       6395686.99     4.216771e+07        228973.45   \n",
       "2016-04-01       4968614.43     3.279538e+07        207874.80   \n",
       "2016-05-01       6566980.86     3.115259e+07        220956.36   \n",
       "2016-06-01       8569214.02     3.734497e+07        282178.17   \n",
       "2016-07-01       7131432.67     2.971958e+07        146074.31   \n",
       "2016-08-01       9430772.28     3.114247e+07        123150.87   \n",
       "2016-09-01      11088238.05     3.488169e+07        170409.93   \n",
       "2016-10-01      12570332.00     4.482060e+07        191198.60   \n",
       "2016-11-01      17850507.19     7.539391e+07        263344.66   \n",
       "2016-12-01      15169044.24     7.208727e+07        239269.94   \n",
       "2017-01-01       8951076.86     5.748715e+07        258845.36   \n",
       "2017-02-01      17515406.23     5.742213e+07        208849.92   \n",
       "2017-03-01      16853919.22     6.155365e+07        372685.33   \n",
       "2017-04-01      10546912.27     4.254694e+07        363450.35   \n",
       "2017-05-01      10892388.69     4.375332e+07        476125.73   \n",
       "2017-06-01      14181021.20     5.374962e+07        983223.04   \n",
       "2017-07-01      11322075.08     4.401432e+07        608151.58   \n",
       "2017-08-01      15096744.60     4.885543e+07        680348.00   \n",
       "2017-09-01      16886365.10     5.226013e+07        733034.58   \n",
       "2017-10-01      15683187.11     5.776405e+07        830260.75   \n",
       "2017-11-01      22071799.53     9.914510e+07       1423714.78   \n",
       "2017-12-01      18986893.98     1.008658e+08       1064238.08   \n",
       "2018-01-01      17147911.26     9.295396e+07       1247542.08   \n",
       "2018-02-01      10647797.71     6.336129e+07        885144.15   \n",
       "2018-03-01      22169161.22     7.761548e+07       1063120.23   \n",
       "2018-04-01      15952053.34     6.127800e+07       1249003.47   \n",
       "2018-05-01      17878989.93     5.829158e+07       1012471.68   \n",
       "2018-06-01      20964002.78     6.464010e+07       1387674.19   \n",
       "2018-07-01      19026531.75     5.734235e+07       1008709.69   \n",
       "2018-08-01      26553972.53     6.188506e+07       1528790.10   \n",
       "2018-09-01      27248237.15     7.219464e+07       2008444.09   \n",
       "2018-10-01      24925822.54     8.907700e+07       1424592.15   \n",
       "2018-11-01      34620424.51     1.337372e+08       2127590.47   \n",
       "2018-12-01      28068759.17     1.401141e+08       2039238.04   \n",
       "2019-01-01      21637936.54     1.356885e+08       2382739.88   \n",
       "2019-02-01      23052561.21     9.702389e+07        968000.01   \n",
       "2019-03-01      26777738.04     1.190183e+08       1637339.55   \n",
       "2019-04-01      27054683.92     9.196725e+07       1377222.59   \n",
       "2019-05-01      24828345.84     8.457023e+07       1601943.78   \n",
       "2019-06-01      29443397.45     8.879800e+07       2740859.25   \n",
       "2019-07-01      25420417.29     7.216634e+07       1673981.23   \n",
       "2019-08-01      30851202.25     8.431632e+07       2396049.42   \n",
       "2019-09-01      31905691.15     1.012248e+08       2488161.93   \n",
       "2019-10-01      29546268.54     1.125631e+08       2252948.50   \n",
       "2019-11-01      48745114.29     1.566022e+08       4550210.70   \n",
       "2019-12-01      38623269.58     1.659758e+08       4633748.21   \n",
       "2020-01-01      19792630.13     1.345156e+08       4278226.65   \n",
       "2020-02-01      30339434.80     1.461747e+08       2335524.15   \n",
       "2020-03-01      45873416.64     1.746529e+08       4202302.64   \n",
       "2020-04-01      42709008.96     1.495834e+08       4577182.53   \n",
       "2020-05-01      41280309.11     1.310139e+08       4723889.60   \n",
       "2020-06-01      49896984.16     1.605210e+08      10828615.86   \n",
       "2020-07-01      41215778.36     1.136772e+08       4387751.38   \n",
       "\n",
       "            中顺洁柔（002511.SZ）  煌上煌（002695.SZ）  良品铺子（603719.SH）  洽洽食品（002557.SZ）  \\\n",
       "时间                                                                              \n",
       "2016-01-01     1.147106e+07      1026754.11     6.500943e+07      14621424.00   \n",
       "2016-02-01     7.999039e+06       838209.68     1.830529e+07       3167168.94   \n",
       "2016-03-01     1.437793e+07       536719.74     1.378228e+07       4041073.85   \n",
       "2016-04-01     7.701460e+06       405520.30     1.237670e+07       4993164.26   \n",
       "2016-05-01     1.358630e+07       580470.85     2.021406e+07       4658511.88   \n",
       "2016-06-01     2.296005e+07       601939.53     2.506062e+07       7785063.37   \n",
       "2016-07-01     1.457645e+07       485289.67     1.853901e+07       4788736.43   \n",
       "2016-08-01     1.490755e+07       330136.28     3.334064e+07       5281617.31   \n",
       "2016-09-01     9.727400e+06       434545.47     3.154732e+07       5563860.99   \n",
       "2016-10-01     7.039961e+06       589759.42     2.700793e+07       6766032.30   \n",
       "2016-11-01     1.688637e+07      1895977.95     5.959237e+07       9121545.82   \n",
       "2016-12-01     1.475233e+07      1218218.12     4.527735e+07       8004816.85   \n",
       "2017-01-01     1.209020e+07       694361.41     8.111691e+07      13180473.77   \n",
       "2017-02-01     1.792365e+07       223566.13     2.314632e+07       2962777.33   \n",
       "2017-03-01     2.077881e+07       462044.94     3.148311e+07       7036553.89   \n",
       "2017-04-01     2.070807e+07       616496.63     2.905200e+07       4858658.78   \n",
       "2017-05-01     2.403378e+07       402114.04     3.532685e+07       4809293.34   \n",
       "2017-06-01     3.951933e+07      2664453.29     4.758075e+07       7130930.78   \n",
       "2017-07-01     1.960669e+07       673499.25     3.830022e+07       4709540.42   \n",
       "2017-08-01     2.137602e+07       599536.51     5.044235e+07       6999010.09   \n",
       "2017-09-01     2.818010e+07       876467.89     5.593115e+07      11086589.08   \n",
       "2017-10-01     2.952577e+07       753082.08     5.055736e+07      11436684.80   \n",
       "2017-11-01     5.326742e+07      1479380.65     1.005754e+08      19507212.54   \n",
       "2017-12-01     2.902136e+07       730355.31     1.068353e+08      19879781.02   \n",
       "2018-01-01     2.937322e+07       620770.94     1.548582e+08      41002599.47   \n",
       "2018-02-01     2.342986e+07       449552.09     1.039350e+08      26836440.68   \n",
       "2018-03-01     3.999999e+07       507864.95     5.533160e+07      10031954.49   \n",
       "2018-04-01     3.781165e+07       635705.78     6.057576e+07      11828274.57   \n",
       "2018-05-01     4.053782e+07       567685.47     7.895265e+07      10079232.02   \n",
       "2018-06-01     5.200859e+07       807783.00     1.033449e+08      14268927.55   \n",
       "2018-07-01     4.090617e+07       444603.15     8.554761e+07       8855499.14   \n",
       "2018-08-01     4.464582e+07       460561.07     1.058474e+08      10497242.05   \n",
       "2018-09-01     4.108136e+07       634036.64     1.173660e+08      13027497.47   \n",
       "2018-10-01     4.796346e+07       717587.87     1.006851e+08      14688233.70   \n",
       "2018-11-01     8.943613e+07       903627.68     1.758735e+08      25355075.72   \n",
       "2018-12-01     5.946535e+07       699843.26     1.466370e+08      13898988.21   \n",
       "2019-01-01     4.745479e+07      1085282.91     1.549410e+08      54077660.57   \n",
       "2019-02-01     3.864791e+07       440641.24     4.159209e+07       8712560.30   \n",
       "2019-03-01     5.448896e+07       528716.41     8.793521e+07      10283604.25   \n",
       "2019-04-01     4.864754e+07       396088.06     9.116047e+07       9426843.27   \n",
       "2019-05-01     5.766876e+07       427504.96     1.011439e+08      20811257.76   \n",
       "2019-06-01     8.395118e+07       764963.10     1.400473e+08      12379133.60   \n",
       "2019-07-01     4.636818e+07       482969.78     1.168565e+08       8999492.37   \n",
       "2019-08-01     4.867918e+07       430548.61     1.343693e+08      12566450.14   \n",
       "2019-09-01     5.475702e+07       561772.71     1.574726e+08      15843970.14   \n",
       "2019-10-01     5.447234e+07       494689.58     1.476621e+08      16382573.81   \n",
       "2019-11-01     1.086174e+08       689192.12     2.458210e+08      23244315.86   \n",
       "2019-12-01     6.406288e+07       604484.32     2.023631e+08      25073062.68   \n",
       "2020-01-01     5.048257e+07       998253.81     3.014330e+08      53940633.59   \n",
       "2020-02-01     6.083017e+07      2142551.15     9.908322e+07      14434167.52   \n",
       "2020-03-01     7.891944e+07      2337639.42     1.173447e+08      16837972.14   \n",
       "2020-04-01     6.558401e+07      1511023.31     1.337210e+08      17443022.21   \n",
       "2020-05-01     6.202557e+07      1262891.47     1.488824e+08      14005750.93   \n",
       "2020-06-01     1.239588e+08      1246652.58     2.054618e+08      18478468.04   \n",
       "2020-07-01     6.388686e+07       610463.21     1.783761e+08      16593340.83   \n",
       "\n",
       "            三只松鼠（300783.SZ）  桃李面包（603866.SH)  西麦食品（002956.SZ）  \n",
       "时间                                                             \n",
       "2016-01-01     1.451850e+08              NaN       4895641.68  \n",
       "2016-02-01     2.378633e+07              NaN       1011038.61  \n",
       "2016-03-01     2.468811e+07              NaN       1778428.59  \n",
       "2016-04-01     2.503637e+07              NaN       1305881.85  \n",
       "2016-05-01     4.073393e+07              NaN       1453825.67  \n",
       "2016-06-01     5.803390e+07              NaN       3702526.81  \n",
       "2016-07-01     4.887414e+07              NaN       1475463.60  \n",
       "2016-08-01     5.213373e+07              NaN       1149121.86  \n",
       "2016-09-01     1.106675e+08              NaN       2254384.51  \n",
       "2016-10-01     8.143055e+07              NaN       2008006.64  \n",
       "2016-11-01     1.238701e+08              NaN       4360516.81  \n",
       "2016-12-01     1.674411e+08              NaN       2558598.42  \n",
       "2017-01-01     3.525155e+08              NaN       4184639.53  \n",
       "2017-02-01     6.495018e+07              NaN       2526192.90  \n",
       "2017-03-01     8.219451e+07         58943.60       4431066.65  \n",
       "2017-04-01     7.049686e+07         68673.90       2578942.14  \n",
       "2017-05-01     8.164086e+07        112907.00       3703257.43  \n",
       "2017-06-01     1.106449e+08         97885.85       5086718.81  \n",
       "2017-07-01     8.982425e+07         98812.14       2781829.32  \n",
       "2017-08-01     9.652081e+07        132444.56       3177223.30  \n",
       "2017-09-01     1.511205e+08        839881.57       4062449.80  \n",
       "2017-10-01     1.039243e+08        168190.70       4390407.14  \n",
       "2017-11-01     1.943640e+08        162105.00       6828144.74  \n",
       "2017-12-01     1.945734e+08        135149.00       4818837.17  \n",
       "2018-01-01     3.546329e+08        202474.00       6366694.38  \n",
       "2018-02-01     3.566944e+08         90810.00       4471913.69  \n",
       "2018-03-01     9.688420e+07        243550.70       5068461.09  \n",
       "2018-04-01     8.838197e+07        122876.40       4121021.60  \n",
       "2018-05-01     1.088716e+08        170535.54       5018238.62  \n",
       "2018-06-01     1.476170e+08        185243.75       5566678.46  \n",
       "2018-07-01     1.405095e+08        129131.91       3757235.94  \n",
       "2018-08-01     1.463415e+08        357030.86       4931431.03  \n",
       "2018-09-01     2.285668e+08       1141447.58       6082717.06  \n",
       "2018-10-01     1.873631e+08        143998.67       6457397.97  \n",
       "2018-11-01     4.011374e+08        210284.87       9082604.28  \n",
       "2018-12-01     4.251038e+08        215326.54       6192150.74  \n",
       "2019-01-01     8.217419e+08        187822.25       9078538.88  \n",
       "2019-02-01     1.680413e+08        160033.99       4322123.96  \n",
       "2019-03-01     2.197355e+08        334341.15       6171154.21  \n",
       "2019-04-01     2.387024e+08        318103.74       5155999.85  \n",
       "2019-05-01     1.941223e+08        425468.96       5165863.71  \n",
       "2019-06-01     3.008372e+08        373792.22       7186388.04  \n",
       "2019-07-01     3.118936e+08        251034.23       4142013.36  \n",
       "2019-08-01     2.897814e+08       1059941.37       4790982.07  \n",
       "2019-09-01     3.828231e+08       3364985.97       6178350.48  \n",
       "2019-10-01     4.027667e+08        192528.95       6075546.27  \n",
       "2019-11-01     7.232330e+08        277713.70       9717462.41  \n",
       "2019-12-01     7.206704e+08        292181.08       6544009.20  \n",
       "2020-01-01     1.377241e+09        224556.03       7596959.88  \n",
       "2020-02-01     4.669730e+08       1839816.82       6999141.89  \n",
       "2020-03-01     5.289774e+08       1458818.39       8621983.82  \n",
       "2020-04-01     4.787543e+08       1148127.38       8476046.53  \n",
       "2020-05-01     4.440483e+08        798636.28       8540964.70  \n",
       "2020-06-01     5.835726e+08       1503478.01      11706599.62  \n",
       "2020-07-01     3.007737e+08        631233.47       6767988.81  "
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data2['时间'] = pd.to_datetime(data2['时间'])\n",
    "data2 = data2.set_index(['时间']) \n",
    "data2"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/var/folders/_p/rfbd33cd5jggpfbv91zgdptr0000gn/T/ipykernel_2497/888011008.py:1: FutureWarning: 'Q' is deprecated and will be removed in a future version, please use 'QE' instead.\n",
      "  Qdata2 = data2.resample('Q').sum()\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>晨光文具（603899.SH）</th>\n",
       "      <th>小熊电器（002959.SZ）</th>\n",
       "      <th>中炬高新（600872.SH）</th>\n",
       "      <th>中顺洁柔（002511.SZ）</th>\n",
       "      <th>煌上煌（002695.SZ）</th>\n",
       "      <th>良品铺子（603719.SH）</th>\n",
       "      <th>洽洽食品（002557.SZ）</th>\n",
       "      <th>三只松鼠（300783.SZ）</th>\n",
       "      <th>桃李面包（603866.SH)</th>\n",
       "      <th>西麦食品（002956.SZ）</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>时间</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2016-03-31</th>\n",
       "      <td>1.426785e+07</td>\n",
       "      <td>1.195226e+08</td>\n",
       "      <td>671400.33</td>\n",
       "      <td>3.384803e+07</td>\n",
       "      <td>2401683.53</td>\n",
       "      <td>9.709700e+07</td>\n",
       "      <td>21829666.79</td>\n",
       "      <td>1.936594e+08</td>\n",
       "      <td>0.00</td>\n",
       "      <td>7685108.88</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-06-30</th>\n",
       "      <td>2.010481e+07</td>\n",
       "      <td>1.012929e+08</td>\n",
       "      <td>711009.33</td>\n",
       "      <td>4.424781e+07</td>\n",
       "      <td>1587930.68</td>\n",
       "      <td>5.765138e+07</td>\n",
       "      <td>17436739.51</td>\n",
       "      <td>1.238042e+08</td>\n",
       "      <td>0.00</td>\n",
       "      <td>6462234.33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-09-30</th>\n",
       "      <td>2.765044e+07</td>\n",
       "      <td>9.574374e+07</td>\n",
       "      <td>439635.11</td>\n",
       "      <td>3.921140e+07</td>\n",
       "      <td>1249971.42</td>\n",
       "      <td>8.342696e+07</td>\n",
       "      <td>15634214.73</td>\n",
       "      <td>2.116754e+08</td>\n",
       "      <td>0.00</td>\n",
       "      <td>4878969.97</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-12-31</th>\n",
       "      <td>4.558988e+07</td>\n",
       "      <td>1.923018e+08</td>\n",
       "      <td>693813.20</td>\n",
       "      <td>3.867866e+07</td>\n",
       "      <td>3703955.49</td>\n",
       "      <td>1.318777e+08</td>\n",
       "      <td>23892394.97</td>\n",
       "      <td>3.727417e+08</td>\n",
       "      <td>0.00</td>\n",
       "      <td>8927121.87</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-03-31</th>\n",
       "      <td>4.332040e+07</td>\n",
       "      <td>1.764629e+08</td>\n",
       "      <td>840380.61</td>\n",
       "      <td>5.079266e+07</td>\n",
       "      <td>1379972.48</td>\n",
       "      <td>1.357463e+08</td>\n",
       "      <td>23179804.99</td>\n",
       "      <td>4.996602e+08</td>\n",
       "      <td>58943.60</td>\n",
       "      <td>11141899.08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-06-30</th>\n",
       "      <td>3.562032e+07</td>\n",
       "      <td>1.400499e+08</td>\n",
       "      <td>1822799.12</td>\n",
       "      <td>8.426117e+07</td>\n",
       "      <td>3683063.96</td>\n",
       "      <td>1.119596e+08</td>\n",
       "      <td>16798882.90</td>\n",
       "      <td>2.627827e+08</td>\n",
       "      <td>279466.75</td>\n",
       "      <td>11368918.38</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-09-30</th>\n",
       "      <td>4.330518e+07</td>\n",
       "      <td>1.451299e+08</td>\n",
       "      <td>2021534.16</td>\n",
       "      <td>6.916281e+07</td>\n",
       "      <td>2149503.65</td>\n",
       "      <td>1.446737e+08</td>\n",
       "      <td>22795139.59</td>\n",
       "      <td>3.374656e+08</td>\n",
       "      <td>1071138.27</td>\n",
       "      <td>10021502.42</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-12-31</th>\n",
       "      <td>5.674188e+07</td>\n",
       "      <td>2.577750e+08</td>\n",
       "      <td>3318213.61</td>\n",
       "      <td>1.118145e+08</td>\n",
       "      <td>2962818.04</td>\n",
       "      <td>2.579680e+08</td>\n",
       "      <td>50823678.36</td>\n",
       "      <td>4.928616e+08</td>\n",
       "      <td>465444.70</td>\n",
       "      <td>16037389.05</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-31</th>\n",
       "      <td>4.996487e+07</td>\n",
       "      <td>2.339307e+08</td>\n",
       "      <td>3195806.46</td>\n",
       "      <td>9.280307e+07</td>\n",
       "      <td>1578187.98</td>\n",
       "      <td>3.141247e+08</td>\n",
       "      <td>77870994.64</td>\n",
       "      <td>8.082115e+08</td>\n",
       "      <td>536834.70</td>\n",
       "      <td>15907069.16</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-30</th>\n",
       "      <td>5.479505e+07</td>\n",
       "      <td>1.842097e+08</td>\n",
       "      <td>3649149.34</td>\n",
       "      <td>1.303581e+08</td>\n",
       "      <td>2011174.25</td>\n",
       "      <td>2.428734e+08</td>\n",
       "      <td>36176434.14</td>\n",
       "      <td>3.448706e+08</td>\n",
       "      <td>478655.69</td>\n",
       "      <td>14705938.68</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-09-30</th>\n",
       "      <td>7.282874e+07</td>\n",
       "      <td>1.914221e+08</td>\n",
       "      <td>4545943.88</td>\n",
       "      <td>1.266334e+08</td>\n",
       "      <td>1539200.86</td>\n",
       "      <td>3.087610e+08</td>\n",
       "      <td>32380238.66</td>\n",
       "      <td>5.154178e+08</td>\n",
       "      <td>1627610.35</td>\n",
       "      <td>14771384.03</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-12-31</th>\n",
       "      <td>8.761501e+07</td>\n",
       "      <td>3.629283e+08</td>\n",
       "      <td>5591420.66</td>\n",
       "      <td>1.968649e+08</td>\n",
       "      <td>2321058.81</td>\n",
       "      <td>4.231956e+08</td>\n",
       "      <td>53942297.63</td>\n",
       "      <td>1.013604e+09</td>\n",
       "      <td>569610.08</td>\n",
       "      <td>21732152.99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-03-31</th>\n",
       "      <td>7.146824e+07</td>\n",
       "      <td>3.517307e+08</td>\n",
       "      <td>4988079.44</td>\n",
       "      <td>1.405917e+08</td>\n",
       "      <td>2054640.56</td>\n",
       "      <td>2.844683e+08</td>\n",
       "      <td>73073825.12</td>\n",
       "      <td>1.209519e+09</td>\n",
       "      <td>682197.39</td>\n",
       "      <td>19571817.05</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-06-30</th>\n",
       "      <td>8.132643e+07</td>\n",
       "      <td>2.653355e+08</td>\n",
       "      <td>5720025.62</td>\n",
       "      <td>1.902675e+08</td>\n",
       "      <td>1588556.12</td>\n",
       "      <td>3.323516e+08</td>\n",
       "      <td>42617234.63</td>\n",
       "      <td>7.336620e+08</td>\n",
       "      <td>1117364.92</td>\n",
       "      <td>17508251.60</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-09-30</th>\n",
       "      <td>8.817731e+07</td>\n",
       "      <td>2.577075e+08</td>\n",
       "      <td>6558192.58</td>\n",
       "      <td>1.498044e+08</td>\n",
       "      <td>1475291.10</td>\n",
       "      <td>4.086983e+08</td>\n",
       "      <td>37409912.65</td>\n",
       "      <td>9.844981e+08</td>\n",
       "      <td>4675961.57</td>\n",
       "      <td>15111345.91</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-12-31</th>\n",
       "      <td>1.169147e+08</td>\n",
       "      <td>4.351412e+08</td>\n",
       "      <td>11436907.41</td>\n",
       "      <td>2.271526e+08</td>\n",
       "      <td>1788366.02</td>\n",
       "      <td>5.958462e+08</td>\n",
       "      <td>64699952.35</td>\n",
       "      <td>1.846670e+09</td>\n",
       "      <td>762423.73</td>\n",
       "      <td>22337017.88</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-03-31</th>\n",
       "      <td>9.600548e+07</td>\n",
       "      <td>4.553432e+08</td>\n",
       "      <td>10816053.44</td>\n",
       "      <td>1.902322e+08</td>\n",
       "      <td>5478444.38</td>\n",
       "      <td>5.178610e+08</td>\n",
       "      <td>85212773.25</td>\n",
       "      <td>2.373191e+09</td>\n",
       "      <td>3523191.24</td>\n",
       "      <td>23218085.59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-06-30</th>\n",
       "      <td>1.338863e+08</td>\n",
       "      <td>4.411183e+08</td>\n",
       "      <td>20129687.99</td>\n",
       "      <td>2.515684e+08</td>\n",
       "      <td>4020567.36</td>\n",
       "      <td>4.880652e+08</td>\n",
       "      <td>49927241.18</td>\n",
       "      <td>1.506375e+09</td>\n",
       "      <td>3450241.67</td>\n",
       "      <td>28723610.85</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-09-30</th>\n",
       "      <td>4.121578e+07</td>\n",
       "      <td>1.136772e+08</td>\n",
       "      <td>4387751.38</td>\n",
       "      <td>6.388686e+07</td>\n",
       "      <td>610463.21</td>\n",
       "      <td>1.783761e+08</td>\n",
       "      <td>16593340.83</td>\n",
       "      <td>3.007737e+08</td>\n",
       "      <td>631233.47</td>\n",
       "      <td>6767988.81</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            晨光文具（603899.SH）  小熊电器（002959.SZ）  中炬高新（600872.SH）  \\\n",
       "时间                                                              \n",
       "2016-03-31     1.426785e+07     1.195226e+08        671400.33   \n",
       "2016-06-30     2.010481e+07     1.012929e+08        711009.33   \n",
       "2016-09-30     2.765044e+07     9.574374e+07        439635.11   \n",
       "2016-12-31     4.558988e+07     1.923018e+08        693813.20   \n",
       "2017-03-31     4.332040e+07     1.764629e+08        840380.61   \n",
       "2017-06-30     3.562032e+07     1.400499e+08       1822799.12   \n",
       "2017-09-30     4.330518e+07     1.451299e+08       2021534.16   \n",
       "2017-12-31     5.674188e+07     2.577750e+08       3318213.61   \n",
       "2018-03-31     4.996487e+07     2.339307e+08       3195806.46   \n",
       "2018-06-30     5.479505e+07     1.842097e+08       3649149.34   \n",
       "2018-09-30     7.282874e+07     1.914221e+08       4545943.88   \n",
       "2018-12-31     8.761501e+07     3.629283e+08       5591420.66   \n",
       "2019-03-31     7.146824e+07     3.517307e+08       4988079.44   \n",
       "2019-06-30     8.132643e+07     2.653355e+08       5720025.62   \n",
       "2019-09-30     8.817731e+07     2.577075e+08       6558192.58   \n",
       "2019-12-31     1.169147e+08     4.351412e+08      11436907.41   \n",
       "2020-03-31     9.600548e+07     4.553432e+08      10816053.44   \n",
       "2020-06-30     1.338863e+08     4.411183e+08      20129687.99   \n",
       "2020-09-30     4.121578e+07     1.136772e+08       4387751.38   \n",
       "\n",
       "            中顺洁柔（002511.SZ）  煌上煌（002695.SZ）  良品铺子（603719.SH）  洽洽食品（002557.SZ）  \\\n",
       "时间                                                                              \n",
       "2016-03-31     3.384803e+07      2401683.53     9.709700e+07      21829666.79   \n",
       "2016-06-30     4.424781e+07      1587930.68     5.765138e+07      17436739.51   \n",
       "2016-09-30     3.921140e+07      1249971.42     8.342696e+07      15634214.73   \n",
       "2016-12-31     3.867866e+07      3703955.49     1.318777e+08      23892394.97   \n",
       "2017-03-31     5.079266e+07      1379972.48     1.357463e+08      23179804.99   \n",
       "2017-06-30     8.426117e+07      3683063.96     1.119596e+08      16798882.90   \n",
       "2017-09-30     6.916281e+07      2149503.65     1.446737e+08      22795139.59   \n",
       "2017-12-31     1.118145e+08      2962818.04     2.579680e+08      50823678.36   \n",
       "2018-03-31     9.280307e+07      1578187.98     3.141247e+08      77870994.64   \n",
       "2018-06-30     1.303581e+08      2011174.25     2.428734e+08      36176434.14   \n",
       "2018-09-30     1.266334e+08      1539200.86     3.087610e+08      32380238.66   \n",
       "2018-12-31     1.968649e+08      2321058.81     4.231956e+08      53942297.63   \n",
       "2019-03-31     1.405917e+08      2054640.56     2.844683e+08      73073825.12   \n",
       "2019-06-30     1.902675e+08      1588556.12     3.323516e+08      42617234.63   \n",
       "2019-09-30     1.498044e+08      1475291.10     4.086983e+08      37409912.65   \n",
       "2019-12-31     2.271526e+08      1788366.02     5.958462e+08      64699952.35   \n",
       "2020-03-31     1.902322e+08      5478444.38     5.178610e+08      85212773.25   \n",
       "2020-06-30     2.515684e+08      4020567.36     4.880652e+08      49927241.18   \n",
       "2020-09-30     6.388686e+07       610463.21     1.783761e+08      16593340.83   \n",
       "\n",
       "            三只松鼠（300783.SZ）  桃李面包（603866.SH)  西麦食品（002956.SZ）  \n",
       "时间                                                             \n",
       "2016-03-31     1.936594e+08             0.00       7685108.88  \n",
       "2016-06-30     1.238042e+08             0.00       6462234.33  \n",
       "2016-09-30     2.116754e+08             0.00       4878969.97  \n",
       "2016-12-31     3.727417e+08             0.00       8927121.87  \n",
       "2017-03-31     4.996602e+08         58943.60      11141899.08  \n",
       "2017-06-30     2.627827e+08        279466.75      11368918.38  \n",
       "2017-09-30     3.374656e+08       1071138.27      10021502.42  \n",
       "2017-12-31     4.928616e+08        465444.70      16037389.05  \n",
       "2018-03-31     8.082115e+08        536834.70      15907069.16  \n",
       "2018-06-30     3.448706e+08        478655.69      14705938.68  \n",
       "2018-09-30     5.154178e+08       1627610.35      14771384.03  \n",
       "2018-12-31     1.013604e+09        569610.08      21732152.99  \n",
       "2019-03-31     1.209519e+09        682197.39      19571817.05  \n",
       "2019-06-30     7.336620e+08       1117364.92      17508251.60  \n",
       "2019-09-30     9.844981e+08       4675961.57      15111345.91  \n",
       "2019-12-31     1.846670e+09        762423.73      22337017.88  \n",
       "2020-03-31     2.373191e+09       3523191.24      23218085.59  \n",
       "2020-06-30     1.506375e+09       3450241.67      28723610.85  \n",
       "2020-09-30     3.007737e+08        631233.47       6767988.81  "
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "Qdata2 = data2.resample('Q').sum()\n",
    "Qdata2"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Stkcd</th>\n",
       "      <th>ShortName</th>\n",
       "      <th>Accper</th>\n",
       "      <th>Typrep</th>\n",
       "      <th>B001100000</th>\n",
       "      <th>B001101000</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>002511</td>\n",
       "      <td>中顺洁柔</td>\n",
       "      <td>2016-01-01</td>\n",
       "      <td>B</td>\n",
       "      <td>6.712815e+08</td>\n",
       "      <td>6.712815e+08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>002511</td>\n",
       "      <td>中顺洁柔</td>\n",
       "      <td>2016-01-01</td>\n",
       "      <td>A</td>\n",
       "      <td>2.958977e+09</td>\n",
       "      <td>2.958977e+09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>002511</td>\n",
       "      <td>中顺洁柔</td>\n",
       "      <td>2016-03-31</td>\n",
       "      <td>B</td>\n",
       "      <td>2.922925e+08</td>\n",
       "      <td>2.922925e+08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>002511</td>\n",
       "      <td>中顺洁柔</td>\n",
       "      <td>2016-03-31</td>\n",
       "      <td>A</td>\n",
       "      <td>8.540908e+08</td>\n",
       "      <td>8.540908e+08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>002511</td>\n",
       "      <td>中顺洁柔</td>\n",
       "      <td>2016-06-30</td>\n",
       "      <td>B</td>\n",
       "      <td>5.055733e+08</td>\n",
       "      <td>5.055733e+08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>361</th>\n",
       "      <td>603899</td>\n",
       "      <td>晨光文具</td>\n",
       "      <td>2020-06-30</td>\n",
       "      <td>A</td>\n",
       "      <td>4.761424e+09</td>\n",
       "      <td>4.761424e+09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>362</th>\n",
       "      <td>603899</td>\n",
       "      <td>晨光文具</td>\n",
       "      <td>2020-09-30</td>\n",
       "      <td>B</td>\n",
       "      <td>2.926605e+09</td>\n",
       "      <td>2.926605e+09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>363</th>\n",
       "      <td>603899</td>\n",
       "      <td>晨光文具</td>\n",
       "      <td>2020-09-30</td>\n",
       "      <td>A</td>\n",
       "      <td>8.537802e+09</td>\n",
       "      <td>8.537802e+09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>364</th>\n",
       "      <td>603899</td>\n",
       "      <td>晨光文具</td>\n",
       "      <td>2020-12-31</td>\n",
       "      <td>B</td>\n",
       "      <td>4.195911e+09</td>\n",
       "      <td>4.195911e+09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>365</th>\n",
       "      <td>603899</td>\n",
       "      <td>晨光文具</td>\n",
       "      <td>2020-12-31</td>\n",
       "      <td>A</td>\n",
       "      <td>1.313775e+10</td>\n",
       "      <td>1.313775e+10</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>366 rows × 6 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      Stkcd ShortName      Accper Typrep    B001100000    B001101000\n",
       "0    002511      中顺洁柔  2016-01-01      B  6.712815e+08  6.712815e+08\n",
       "1    002511      中顺洁柔  2016-01-01      A  2.958977e+09  2.958977e+09\n",
       "2    002511      中顺洁柔  2016-03-31      B  2.922925e+08  2.922925e+08\n",
       "3    002511      中顺洁柔  2016-03-31      A  8.540908e+08  8.540908e+08\n",
       "4    002511      中顺洁柔  2016-06-30      B  5.055733e+08  5.055733e+08\n",
       "..      ...       ...         ...    ...           ...           ...\n",
       "361  603899      晨光文具  2020-06-30      A  4.761424e+09  4.761424e+09\n",
       "362  603899      晨光文具  2020-09-30      B  2.926605e+09  2.926605e+09\n",
       "363  603899      晨光文具  2020-09-30      A  8.537802e+09  8.537802e+09\n",
       "364  603899      晨光文具  2020-12-31      B  4.195911e+09  4.195911e+09\n",
       "365  603899      晨光文具  2020-12-31      A  1.313775e+10  1.313775e+10\n",
       "\n",
       "[366 rows x 6 columns]"
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "rawdata = pd.read_csv('FS_Comins.csv')\n",
    "rawdata['Stkcd'] = rawdata['Stkcd'].apply(lambda x: '{:0>6}'.format(x)) # 6位股票代码\n",
    "rawdata"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "metadata": {},
   "outputs": [],
   "source": [
    "rawdata['B001100000']==rawdata['B001101000']\n",
    "rawdata=rawdata[rawdata['Typrep'] != 'B']\n",
    "rawdata=rawdata[['Stkcd','ShortName','Accper','B001100000']]\n",
    "rawdata.rename(columns={'Accper': '时间'}, inplace=True)\n",
    "rawdata['时间'] = pd.to_datetime(rawdata['时间'])\n",
    "rawdata.rename(columns={'B001100000': 'revenue'}, inplace=True)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th>ShortName</th>\n",
       "      <th>三只松鼠</th>\n",
       "      <th>中炬高新</th>\n",
       "      <th>中顺洁柔</th>\n",
       "      <th>小熊电器</th>\n",
       "      <th>晨光文具</th>\n",
       "      <th>桃李面包</th>\n",
       "      <th>洽洽食品</th>\n",
       "      <th>煌上煌</th>\n",
       "      <th>良品铺子</th>\n",
       "      <th>西麦食品</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>时间</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2016-01-01</th>\n",
       "      <td>NaN</td>\n",
       "      <td>2.758585e+09</td>\n",
       "      <td>2.958977e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.749112e+09</td>\n",
       "      <td>2.563330e+09</td>\n",
       "      <td>3.311373e+09</td>\n",
       "      <td>1.151075e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-03-31</th>\n",
       "      <td>NaN</td>\n",
       "      <td>7.442036e+08</td>\n",
       "      <td>8.540908e+08</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.133433e+09</td>\n",
       "      <td>6.620403e+08</td>\n",
       "      <td>8.608553e+08</td>\n",
       "      <td>2.970629e+08</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-06-30</th>\n",
       "      <td>NaN</td>\n",
       "      <td>1.490269e+09</td>\n",
       "      <td>1.771553e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.179551e+09</td>\n",
       "      <td>1.459699e+09</td>\n",
       "      <td>1.655848e+09</td>\n",
       "      <td>6.626367e+08</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-09-30</th>\n",
       "      <td>NaN</td>\n",
       "      <td>2.296103e+09</td>\n",
       "      <td>2.740959e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.452350e+09</td>\n",
       "      <td>2.377194e+09</td>\n",
       "      <td>2.532158e+09</td>\n",
       "      <td>9.503618e+08</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2016-12-31</th>\n",
       "      <td>NaN</td>\n",
       "      <td>3.157989e+09</td>\n",
       "      <td>3.809349e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>4.662466e+09</td>\n",
       "      <td>3.305480e+09</td>\n",
       "      <td>3.513012e+09</td>\n",
       "      <td>1.217822e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-01-01</th>\n",
       "      <td>NaN</td>\n",
       "      <td>3.157989e+09</td>\n",
       "      <td>3.809349e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>4.662466e+09</td>\n",
       "      <td>3.305480e+09</td>\n",
       "      <td>3.513012e+09</td>\n",
       "      <td>1.217822e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-03-31</th>\n",
       "      <td>NaN</td>\n",
       "      <td>9.741970e+08</td>\n",
       "      <td>1.032247e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.412887e+09</td>\n",
       "      <td>8.201647e+08</td>\n",
       "      <td>7.994971e+08</td>\n",
       "      <td>3.362208e+08</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-06-30</th>\n",
       "      <td>NaN</td>\n",
       "      <td>1.804227e+09</td>\n",
       "      <td>2.123216e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.785408e+09</td>\n",
       "      <td>1.815760e+09</td>\n",
       "      <td>1.600144e+09</td>\n",
       "      <td>7.575223e+08</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-09-30</th>\n",
       "      <td>NaN</td>\n",
       "      <td>2.728666e+09</td>\n",
       "      <td>3.352134e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>4.493000e+09</td>\n",
       "      <td>2.955324e+09</td>\n",
       "      <td>2.509963e+09</td>\n",
       "      <td>1.132864e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2017-12-31</th>\n",
       "      <td>NaN</td>\n",
       "      <td>3.609372e+09</td>\n",
       "      <td>4.638350e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>6.357103e+09</td>\n",
       "      <td>4.079710e+09</td>\n",
       "      <td>3.602738e+09</td>\n",
       "      <td>1.477780e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-01-01</th>\n",
       "      <td>NaN</td>\n",
       "      <td>3.609372e+09</td>\n",
       "      <td>4.638350e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>6.357103e+09</td>\n",
       "      <td>4.079710e+09</td>\n",
       "      <td>3.602738e+09</td>\n",
       "      <td>1.477780e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-03-31</th>\n",
       "      <td>NaN</td>\n",
       "      <td>1.153600e+09</td>\n",
       "      <td>1.224791e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.840310e+09</td>\n",
       "      <td>9.888991e+08</td>\n",
       "      <td>1.026891e+09</td>\n",
       "      <td>4.148587e+08</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-06-30</th>\n",
       "      <td>NaN</td>\n",
       "      <td>2.174000e+09</td>\n",
       "      <td>2.586062e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.786632e+09</td>\n",
       "      <td>2.166657e+09</td>\n",
       "      <td>1.874430e+09</td>\n",
       "      <td>1.032781e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-09-30</th>\n",
       "      <td>NaN</td>\n",
       "      <td>3.164506e+09</td>\n",
       "      <td>4.080984e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>6.123593e+09</td>\n",
       "      <td>3.524423e+09</td>\n",
       "      <td>2.909625e+09</td>\n",
       "      <td>1.455073e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2018-12-31</th>\n",
       "      <td>NaN</td>\n",
       "      <td>4.166465e+09</td>\n",
       "      <td>5.678518e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>8.534989e+09</td>\n",
       "      <td>4.833228e+09</td>\n",
       "      <td>4.197046e+09</td>\n",
       "      <td>1.897579e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-01-01</th>\n",
       "      <td>7.001167e+09</td>\n",
       "      <td>4.166465e+09</td>\n",
       "      <td>5.678518e+09</td>\n",
       "      <td>2.041035e+09</td>\n",
       "      <td>8.534989e+09</td>\n",
       "      <td>4.833228e+09</td>\n",
       "      <td>4.197046e+09</td>\n",
       "      <td>1.897579e+09</td>\n",
       "      <td>6.377559e+09</td>\n",
       "      <td>8.508532e+08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-03-31</th>\n",
       "      <td>NaN</td>\n",
       "      <td>1.231103e+09</td>\n",
       "      <td>1.540517e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.355614e+09</td>\n",
       "      <td>1.142347e+09</td>\n",
       "      <td>1.039852e+09</td>\n",
       "      <td>4.993159e+08</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-06-30</th>\n",
       "      <td>4.511408e+09</td>\n",
       "      <td>2.392154e+09</td>\n",
       "      <td>3.172389e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>4.838623e+09</td>\n",
       "      <td>2.557901e+09</td>\n",
       "      <td>1.987228e+09</td>\n",
       "      <td>1.168621e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>4.450475e+08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-09-30</th>\n",
       "      <td>6.714643e+09</td>\n",
       "      <td>3.530582e+09</td>\n",
       "      <td>4.819880e+09</td>\n",
       "      <td>1.720792e+09</td>\n",
       "      <td>7.947344e+09</td>\n",
       "      <td>4.121748e+09</td>\n",
       "      <td>3.219175e+09</td>\n",
       "      <td>1.677465e+09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>6.874107e+08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-12-31</th>\n",
       "      <td>1.017302e+10</td>\n",
       "      <td>4.674844e+09</td>\n",
       "      <td>6.634914e+09</td>\n",
       "      <td>2.687964e+09</td>\n",
       "      <td>1.114110e+10</td>\n",
       "      <td>5.643710e+09</td>\n",
       "      <td>4.837252e+09</td>\n",
       "      <td>2.116916e+09</td>\n",
       "      <td>7.714993e+09</td>\n",
       "      <td>9.727782e+08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-01-01</th>\n",
       "      <td>1.017302e+10</td>\n",
       "      <td>4.674844e+09</td>\n",
       "      <td>6.634914e+09</td>\n",
       "      <td>2.687964e+09</td>\n",
       "      <td>1.114110e+10</td>\n",
       "      <td>5.643710e+09</td>\n",
       "      <td>4.837252e+09</td>\n",
       "      <td>2.116916e+09</td>\n",
       "      <td>7.714993e+09</td>\n",
       "      <td>9.727782e+08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-03-31</th>\n",
       "      <td>3.412416e+09</td>\n",
       "      <td>1.153355e+09</td>\n",
       "      <td>1.670909e+09</td>\n",
       "      <td>7.395883e+08</td>\n",
       "      <td>2.083587e+09</td>\n",
       "      <td>1.322683e+09</td>\n",
       "      <td>1.146881e+09</td>\n",
       "      <td>5.406589e+08</td>\n",
       "      <td>1.908931e+09</td>\n",
       "      <td>1.895828e+08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-06-30</th>\n",
       "      <td>5.252014e+09</td>\n",
       "      <td>2.554392e+09</td>\n",
       "      <td>3.616201e+09</td>\n",
       "      <td>1.717429e+09</td>\n",
       "      <td>4.761424e+09</td>\n",
       "      <td>2.738880e+09</td>\n",
       "      <td>2.294483e+09</td>\n",
       "      <td>1.364636e+09</td>\n",
       "      <td>3.610311e+09</td>\n",
       "      <td>4.358129e+08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-09-30</th>\n",
       "      <td>7.231370e+09</td>\n",
       "      <td>3.809590e+09</td>\n",
       "      <td>5.555316e+09</td>\n",
       "      <td>2.497602e+09</td>\n",
       "      <td>8.537802e+09</td>\n",
       "      <td>4.371973e+09</td>\n",
       "      <td>3.650937e+09</td>\n",
       "      <td>1.934367e+09</td>\n",
       "      <td>5.529869e+09</td>\n",
       "      <td>7.142937e+08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-12-31</th>\n",
       "      <td>9.794123e+09</td>\n",
       "      <td>5.123375e+09</td>\n",
       "      <td>7.823528e+09</td>\n",
       "      <td>3.659948e+09</td>\n",
       "      <td>1.313775e+10</td>\n",
       "      <td>5.963004e+09</td>\n",
       "      <td>5.289304e+09</td>\n",
       "      <td>2.436379e+09</td>\n",
       "      <td>7.894076e+09</td>\n",
       "      <td>1.024480e+09</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "ShortName           三只松鼠          中炬高新          中顺洁柔          小熊电器  \\\n",
       "时间                                                                   \n",
       "2016-01-01           NaN  2.758585e+09  2.958977e+09           NaN   \n",
       "2016-03-31           NaN  7.442036e+08  8.540908e+08           NaN   \n",
       "2016-06-30           NaN  1.490269e+09  1.771553e+09           NaN   \n",
       "2016-09-30           NaN  2.296103e+09  2.740959e+09           NaN   \n",
       "2016-12-31           NaN  3.157989e+09  3.809349e+09           NaN   \n",
       "2017-01-01           NaN  3.157989e+09  3.809349e+09           NaN   \n",
       "2017-03-31           NaN  9.741970e+08  1.032247e+09           NaN   \n",
       "2017-06-30           NaN  1.804227e+09  2.123216e+09           NaN   \n",
       "2017-09-30           NaN  2.728666e+09  3.352134e+09           NaN   \n",
       "2017-12-31           NaN  3.609372e+09  4.638350e+09           NaN   \n",
       "2018-01-01           NaN  3.609372e+09  4.638350e+09           NaN   \n",
       "2018-03-31           NaN  1.153600e+09  1.224791e+09           NaN   \n",
       "2018-06-30           NaN  2.174000e+09  2.586062e+09           NaN   \n",
       "2018-09-30           NaN  3.164506e+09  4.080984e+09           NaN   \n",
       "2018-12-31           NaN  4.166465e+09  5.678518e+09           NaN   \n",
       "2019-01-01  7.001167e+09  4.166465e+09  5.678518e+09  2.041035e+09   \n",
       "2019-03-31           NaN  1.231103e+09  1.540517e+09           NaN   \n",
       "2019-06-30  4.511408e+09  2.392154e+09  3.172389e+09           NaN   \n",
       "2019-09-30  6.714643e+09  3.530582e+09  4.819880e+09  1.720792e+09   \n",
       "2019-12-31  1.017302e+10  4.674844e+09  6.634914e+09  2.687964e+09   \n",
       "2020-01-01  1.017302e+10  4.674844e+09  6.634914e+09  2.687964e+09   \n",
       "2020-03-31  3.412416e+09  1.153355e+09  1.670909e+09  7.395883e+08   \n",
       "2020-06-30  5.252014e+09  2.554392e+09  3.616201e+09  1.717429e+09   \n",
       "2020-09-30  7.231370e+09  3.809590e+09  5.555316e+09  2.497602e+09   \n",
       "2020-12-31  9.794123e+09  5.123375e+09  7.823528e+09  3.659948e+09   \n",
       "\n",
       "ShortName           晨光文具          桃李面包          洽洽食品           煌上煌  \\\n",
       "时间                                                                   \n",
       "2016-01-01  3.749112e+09  2.563330e+09  3.311373e+09  1.151075e+09   \n",
       "2016-03-31  1.133433e+09  6.620403e+08  8.608553e+08  2.970629e+08   \n",
       "2016-06-30  2.179551e+09  1.459699e+09  1.655848e+09  6.626367e+08   \n",
       "2016-09-30  3.452350e+09  2.377194e+09  2.532158e+09  9.503618e+08   \n",
       "2016-12-31  4.662466e+09  3.305480e+09  3.513012e+09  1.217822e+09   \n",
       "2017-01-01  4.662466e+09  3.305480e+09  3.513012e+09  1.217822e+09   \n",
       "2017-03-31  1.412887e+09  8.201647e+08  7.994971e+08  3.362208e+08   \n",
       "2017-06-30  2.785408e+09  1.815760e+09  1.600144e+09  7.575223e+08   \n",
       "2017-09-30  4.493000e+09  2.955324e+09  2.509963e+09  1.132864e+09   \n",
       "2017-12-31  6.357103e+09  4.079710e+09  3.602738e+09  1.477780e+09   \n",
       "2018-01-01  6.357103e+09  4.079710e+09  3.602738e+09  1.477780e+09   \n",
       "2018-03-31  1.840310e+09  9.888991e+08  1.026891e+09  4.148587e+08   \n",
       "2018-06-30  3.786632e+09  2.166657e+09  1.874430e+09  1.032781e+09   \n",
       "2018-09-30  6.123593e+09  3.524423e+09  2.909625e+09  1.455073e+09   \n",
       "2018-12-31  8.534989e+09  4.833228e+09  4.197046e+09  1.897579e+09   \n",
       "2019-01-01  8.534989e+09  4.833228e+09  4.197046e+09  1.897579e+09   \n",
       "2019-03-31  2.355614e+09  1.142347e+09  1.039852e+09  4.993159e+08   \n",
       "2019-06-30  4.838623e+09  2.557901e+09  1.987228e+09  1.168621e+09   \n",
       "2019-09-30  7.947344e+09  4.121748e+09  3.219175e+09  1.677465e+09   \n",
       "2019-12-31  1.114110e+10  5.643710e+09  4.837252e+09  2.116916e+09   \n",
       "2020-01-01  1.114110e+10  5.643710e+09  4.837252e+09  2.116916e+09   \n",
       "2020-03-31  2.083587e+09  1.322683e+09  1.146881e+09  5.406589e+08   \n",
       "2020-06-30  4.761424e+09  2.738880e+09  2.294483e+09  1.364636e+09   \n",
       "2020-09-30  8.537802e+09  4.371973e+09  3.650937e+09  1.934367e+09   \n",
       "2020-12-31  1.313775e+10  5.963004e+09  5.289304e+09  2.436379e+09   \n",
       "\n",
       "ShortName           良品铺子          西麦食品  \n",
       "时间                                      \n",
       "2016-01-01           NaN           NaN  \n",
       "2016-03-31           NaN           NaN  \n",
       "2016-06-30           NaN           NaN  \n",
       "2016-09-30           NaN           NaN  \n",
       "2016-12-31           NaN           NaN  \n",
       "2017-01-01           NaN           NaN  \n",
       "2017-03-31           NaN           NaN  \n",
       "2017-06-30           NaN           NaN  \n",
       "2017-09-30           NaN           NaN  \n",
       "2017-12-31           NaN           NaN  \n",
       "2018-01-01           NaN           NaN  \n",
       "2018-03-31           NaN           NaN  \n",
       "2018-06-30           NaN           NaN  \n",
       "2018-09-30           NaN           NaN  \n",
       "2018-12-31           NaN           NaN  \n",
       "2019-01-01  6.377559e+09  8.508532e+08  \n",
       "2019-03-31           NaN           NaN  \n",
       "2019-06-30           NaN  4.450475e+08  \n",
       "2019-09-30           NaN  6.874107e+08  \n",
       "2019-12-31  7.714993e+09  9.727782e+08  \n",
       "2020-01-01  7.714993e+09  9.727782e+08  \n",
       "2020-03-31  1.908931e+09  1.895828e+08  \n",
       "2020-06-30  3.610311e+09  4.358129e+08  \n",
       "2020-09-30  5.529869e+09  7.142937e+08  \n",
       "2020-12-31  7.894076e+09  1.024480e+09  "
      ]
     },
     "execution_count": 35,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "rawdata\n",
    "finaldata =rawdata.pivot_table(index='时间', columns='ShortName', values='revenue')\n",
    "finaldata"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
       "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"645.5625pt\" height=\"352.84625pt\" viewBox=\"0 0 645.5625 352.84625\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">\n",
       " <metadata>\n",
       "  <rdf:RDF xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n",
       "   <cc:Work>\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\n",
       "    <dc:date>2024-12-19T16:23:50.623598</dc:date>\n",
       "    <dc:format>image/svg+xml</dc:format>\n",
       "    <dc:creator>\n",
       "     <cc:Agent>\n",
       "      <dc:title>Matplotlib v3.5.2, https://matplotlib.org/</dc:title>\n",
       "     </cc:Agent>\n",
       "    </dc:creator>\n",
       "   </cc:Work>\n",
       "  </rdf:RDF>\n",
       " </metadata>\n",
       " <defs>\n",
       "  <style type=\"text/css\">*{stroke-linejoin: round; stroke-linecap: butt}</style>\n",
       " </defs>\n",
       " <g id=\"figure_1\">\n",
       "  <g id=\"patch_1\">\n",
       "   <path d=\"M 0 352.84625 \n",
       "L 645.5625 352.84625 \n",
       "L 645.5625 0 \n",
       "L 0 0 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "  </g>\n",
       "  <g id=\"axes_1\">\n",
       "   <g id=\"patch_2\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 601.78125 299.518125 \n",
       "L 601.78125 22.318125 \n",
       "L 43.78125 22.318125 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_1\">\n",
       "    <g id=\"xtick_1\">\n",
       "     <g id=\"line2d_1\">\n",
       "      <defs>\n",
       "       <path id=\"m338f0d2f75\" d=\"M 0 0 \n",
       "L 0 3.5 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m338f0d2f75\" x=\"69.144886\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_1\">\n",
       "      <!-- 2016 -->\n",
       "      <g transform=\"translate(71.904261 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-32\" d=\"M 1228 531 \n",
       "L 3431 531 \n",
       "L 3431 0 \n",
       "L 469 0 \n",
       "L 469 531 \n",
       "Q 828 903 1448 1529 \n",
       "Q 2069 2156 2228 2338 \n",
       "Q 2531 2678 2651 2914 \n",
       "Q 2772 3150 2772 3378 \n",
       "Q 2772 3750 2511 3984 \n",
       "Q 2250 4219 1831 4219 \n",
       "Q 1534 4219 1204 4116 \n",
       "Q 875 4013 500 3803 \n",
       "L 500 4441 \n",
       "Q 881 4594 1212 4672 \n",
       "Q 1544 4750 1819 4750 \n",
       "Q 2544 4750 2975 4387 \n",
       "Q 3406 4025 3406 3419 \n",
       "Q 3406 3131 3298 2873 \n",
       "Q 3191 2616 2906 2266 \n",
       "Q 2828 2175 2409 1742 \n",
       "Q 1991 1309 1228 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-30\" d=\"M 2034 4250 \n",
       "Q 1547 4250 1301 3770 \n",
       "Q 1056 3291 1056 2328 \n",
       "Q 1056 1369 1301 889 \n",
       "Q 1547 409 2034 409 \n",
       "Q 2525 409 2770 889 \n",
       "Q 3016 1369 3016 2328 \n",
       "Q 3016 3291 2770 3770 \n",
       "Q 2525 4250 2034 4250 \n",
       "z\n",
       "M 2034 4750 \n",
       "Q 2819 4750 3233 4129 \n",
       "Q 3647 3509 3647 2328 \n",
       "Q 3647 1150 3233 529 \n",
       "Q 2819 -91 2034 -91 \n",
       "Q 1250 -91 836 529 \n",
       "Q 422 1150 422 2328 \n",
       "Q 422 3509 836 4129 \n",
       "Q 1250 4750 2034 4750 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-31\" d=\"M 794 531 \n",
       "L 1825 531 \n",
       "L 1825 4091 \n",
       "L 703 3866 \n",
       "L 703 4441 \n",
       "L 1819 4666 \n",
       "L 2450 4666 \n",
       "L 2450 531 \n",
       "L 3481 531 \n",
       "L 3481 0 \n",
       "L 794 0 \n",
       "L 794 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-36\" d=\"M 2113 2584 \n",
       "Q 1688 2584 1439 2293 \n",
       "Q 1191 2003 1191 1497 \n",
       "Q 1191 994 1439 701 \n",
       "Q 1688 409 2113 409 \n",
       "Q 2538 409 2786 701 \n",
       "Q 3034 994 3034 1497 \n",
       "Q 3034 2003 2786 2293 \n",
       "Q 2538 2584 2113 2584 \n",
       "z\n",
       "M 3366 4563 \n",
       "L 3366 3988 \n",
       "Q 3128 4100 2886 4159 \n",
       "Q 2644 4219 2406 4219 \n",
       "Q 1781 4219 1451 3797 \n",
       "Q 1122 3375 1075 2522 \n",
       "Q 1259 2794 1537 2939 \n",
       "Q 1816 3084 2150 3084 \n",
       "Q 2853 3084 3261 2657 \n",
       "Q 3669 2231 3669 1497 \n",
       "Q 3669 778 3244 343 \n",
       "Q 2819 -91 2113 -91 \n",
       "Q 1303 -91 875 529 \n",
       "Q 447 1150 447 2328 \n",
       "Q 447 3434 972 4092 \n",
       "Q 1497 4750 2381 4750 \n",
       "Q 2619 4750 2861 4703 \n",
       "Q 3103 4656 3366 4563 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-36\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_2\">\n",
       "     <g id=\"line2d_2\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m338f0d2f75\" x=\"170.821676\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_2\">\n",
       "      <!-- 2017 -->\n",
       "      <g transform=\"translate(173.581051 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-37\" d=\"M 525 4666 \n",
       "L 3525 4666 \n",
       "L 3525 4397 \n",
       "L 1831 0 \n",
       "L 1172 0 \n",
       "L 2766 4134 \n",
       "L 525 4134 \n",
       "L 525 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-37\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_3\">\n",
       "     <g id=\"line2d_3\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m338f0d2f75\" x=\"272.220661\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_3\">\n",
       "      <!-- 2018 -->\n",
       "      <g transform=\"translate(274.980036 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-38\" d=\"M 2034 2216 \n",
       "Q 1584 2216 1326 1975 \n",
       "Q 1069 1734 1069 1313 \n",
       "Q 1069 891 1326 650 \n",
       "Q 1584 409 2034 409 \n",
       "Q 2484 409 2743 651 \n",
       "Q 3003 894 3003 1313 \n",
       "Q 3003 1734 2745 1975 \n",
       "Q 2488 2216 2034 2216 \n",
       "z\n",
       "M 1403 2484 \n",
       "Q 997 2584 770 2862 \n",
       "Q 544 3141 544 3541 \n",
       "Q 544 4100 942 4425 \n",
       "Q 1341 4750 2034 4750 \n",
       "Q 2731 4750 3128 4425 \n",
       "Q 3525 4100 3525 3541 \n",
       "Q 3525 3141 3298 2862 \n",
       "Q 3072 2584 2669 2484 \n",
       "Q 3125 2378 3379 2068 \n",
       "Q 3634 1759 3634 1313 \n",
       "Q 3634 634 3220 271 \n",
       "Q 2806 -91 2034 -91 \n",
       "Q 1263 -91 848 271 \n",
       "Q 434 634 434 1313 \n",
       "Q 434 1759 690 2068 \n",
       "Q 947 2378 1403 2484 \n",
       "z\n",
       "M 1172 3481 \n",
       "Q 1172 3119 1398 2916 \n",
       "Q 1625 2713 2034 2713 \n",
       "Q 2441 2713 2670 2916 \n",
       "Q 2900 3119 2900 3481 \n",
       "Q 2900 3844 2670 4047 \n",
       "Q 2441 4250 2034 4250 \n",
       "Q 1625 4250 1398 4047 \n",
       "Q 1172 3844 1172 3481 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-38\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_4\">\n",
       "     <g id=\"line2d_4\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m338f0d2f75\" x=\"373.619645\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_4\">\n",
       "      <!-- 2019 -->\n",
       "      <g transform=\"translate(376.37902 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-39\" d=\"M 703 97 \n",
       "L 703 672 \n",
       "Q 941 559 1184 500 \n",
       "Q 1428 441 1663 441 \n",
       "Q 2288 441 2617 861 \n",
       "Q 2947 1281 2994 2138 \n",
       "Q 2813 1869 2534 1725 \n",
       "Q 2256 1581 1919 1581 \n",
       "Q 1219 1581 811 2004 \n",
       "Q 403 2428 403 3163 \n",
       "Q 403 3881 828 4315 \n",
       "Q 1253 4750 1959 4750 \n",
       "Q 2769 4750 3195 4129 \n",
       "Q 3622 3509 3622 2328 \n",
       "Q 3622 1225 3098 567 \n",
       "Q 2575 -91 1691 -91 \n",
       "Q 1453 -91 1209 -44 \n",
       "Q 966 3 703 97 \n",
       "z\n",
       "M 1959 2075 \n",
       "Q 2384 2075 2632 2365 \n",
       "Q 2881 2656 2881 3163 \n",
       "Q 2881 3666 2632 3958 \n",
       "Q 2384 4250 1959 4250 \n",
       "Q 1534 4250 1286 3958 \n",
       "Q 1038 3666 1038 3163 \n",
       "Q 1038 2656 1286 2365 \n",
       "Q 1534 2075 1959 2075 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-39\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_5\">\n",
       "     <g id=\"line2d_5\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m338f0d2f75\" x=\"475.018629\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_5\">\n",
       "      <!-- 2020 -->\n",
       "      <g transform=\"translate(477.778004 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_6\">\n",
       "     <g id=\"line2d_6\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m338f0d2f75\" x=\"576.695419\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_6\">\n",
       "      <!-- 2021 -->\n",
       "      <g transform=\"translate(579.454794 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_7\">\n",
       "     <!-- time -->\n",
       "     <g transform=\"translate(311.485156 343.566563)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-74\" d=\"M 1172 4494 \n",
       "L 1172 3500 \n",
       "L 2356 3500 \n",
       "L 2356 3053 \n",
       "L 1172 3053 \n",
       "L 1172 1153 \n",
       "Q 1172 725 1289 603 \n",
       "Q 1406 481 1766 481 \n",
       "L 2356 481 \n",
       "L 2356 0 \n",
       "L 1766 0 \n",
       "Q 1100 0 847 248 \n",
       "Q 594 497 594 1153 \n",
       "L 594 3053 \n",
       "L 172 3053 \n",
       "L 172 3500 \n",
       "L 594 3500 \n",
       "L 594 4494 \n",
       "L 1172 4494 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-69\" d=\"M 603 3500 \n",
       "L 1178 3500 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 3500 \n",
       "z\n",
       "M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 4134 \n",
       "L 603 4134 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6d\" d=\"M 3328 2828 \n",
       "Q 3544 3216 3844 3400 \n",
       "Q 4144 3584 4550 3584 \n",
       "Q 5097 3584 5394 3201 \n",
       "Q 5691 2819 5691 2113 \n",
       "L 5691 0 \n",
       "L 5113 0 \n",
       "L 5113 2094 \n",
       "Q 5113 2597 4934 2840 \n",
       "Q 4756 3084 4391 3084 \n",
       "Q 3944 3084 3684 2787 \n",
       "Q 3425 2491 3425 1978 \n",
       "L 3425 0 \n",
       "L 2847 0 \n",
       "L 2847 2094 \n",
       "Q 2847 2600 2669 2842 \n",
       "Q 2491 3084 2119 3084 \n",
       "Q 1678 3084 1418 2786 \n",
       "Q 1159 2488 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1356 3278 1631 3431 \n",
       "Q 1906 3584 2284 3584 \n",
       "Q 2666 3584 2933 3390 \n",
       "Q 3200 3197 3328 2828 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-65\" d=\"M 3597 1894 \n",
       "L 3597 1613 \n",
       "L 953 1613 \n",
       "Q 991 1019 1311 708 \n",
       "Q 1631 397 2203 397 \n",
       "Q 2534 397 2845 478 \n",
       "Q 3156 559 3463 722 \n",
       "L 3463 178 \n",
       "Q 3153 47 2828 -22 \n",
       "Q 2503 -91 2169 -91 \n",
       "Q 1331 -91 842 396 \n",
       "Q 353 884 353 1716 \n",
       "Q 353 2575 817 3079 \n",
       "Q 1281 3584 2069 3584 \n",
       "Q 2775 3584 3186 3129 \n",
       "Q 3597 2675 3597 1894 \n",
       "z\n",
       "M 3022 2063 \n",
       "Q 3016 2534 2758 2815 \n",
       "Q 2500 3097 2075 3097 \n",
       "Q 1594 3097 1305 2825 \n",
       "Q 1016 2553 972 2059 \n",
       "L 3022 2063 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-74\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"39.208984\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"66.992188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"164.404297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_2\">\n",
       "    <g id=\"ytick_1\">\n",
       "     <g id=\"line2d_7\">\n",
       "      <defs>\n",
       "       <path id=\"mc94158c688\" d=\"M 0 0 \n",
       "L -3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#mc94158c688\" x=\"43.78125\" y=\"274.842204\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_8\">\n",
       "      <!-- 0.2 -->\n",
       "      <g transform=\"translate(20.878125 278.641423)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-2e\" d=\"M 684 794 \n",
       "L 1344 794 \n",
       "L 1344 0 \n",
       "L 684 0 \n",
       "L 684 794 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_8\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mc94158c688\" x=\"43.78125\" y=\"232.708238\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_9\">\n",
       "      <!-- 0.4 -->\n",
       "      <g transform=\"translate(20.878125 236.507457)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-34\" d=\"M 2419 4116 \n",
       "L 825 1625 \n",
       "L 2419 1625 \n",
       "L 2419 4116 \n",
       "z\n",
       "M 2253 4666 \n",
       "L 3047 4666 \n",
       "L 3047 1625 \n",
       "L 3713 1625 \n",
       "L 3713 1100 \n",
       "L 3047 1100 \n",
       "L 3047 0 \n",
       "L 2419 0 \n",
       "L 2419 1100 \n",
       "L 313 1100 \n",
       "L 313 1709 \n",
       "L 2253 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-34\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_9\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mc94158c688\" x=\"43.78125\" y=\"190.574272\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_10\">\n",
       "      <!-- 0.6 -->\n",
       "      <g transform=\"translate(20.878125 194.373491)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-36\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_10\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mc94158c688\" x=\"43.78125\" y=\"148.440306\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_11\">\n",
       "      <!-- 0.8 -->\n",
       "      <g transform=\"translate(20.878125 152.239525)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-38\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_5\">\n",
       "     <g id=\"line2d_11\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mc94158c688\" x=\"43.78125\" y=\"106.30634\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_12\">\n",
       "      <!-- 1.0 -->\n",
       "      <g transform=\"translate(20.878125 110.105559)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_6\">\n",
       "     <g id=\"line2d_12\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mc94158c688\" x=\"43.78125\" y=\"64.172374\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_13\">\n",
       "      <!-- 1.2 -->\n",
       "      <g transform=\"translate(20.878125 67.971593)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_14\">\n",
       "     <!-- revenue -->\n",
       "     <g transform=\"translate(14.798438 181.387656)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-72\" d=\"M 2631 2963 \n",
       "Q 2534 3019 2420 3045 \n",
       "Q 2306 3072 2169 3072 \n",
       "Q 1681 3072 1420 2755 \n",
       "Q 1159 2438 1159 1844 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1341 3275 1631 3429 \n",
       "Q 1922 3584 2338 3584 \n",
       "Q 2397 3584 2469 3576 \n",
       "Q 2541 3569 2628 3553 \n",
       "L 2631 2963 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-76\" d=\"M 191 3500 \n",
       "L 800 3500 \n",
       "L 1894 563 \n",
       "L 2988 3500 \n",
       "L 3597 3500 \n",
       "L 2284 0 \n",
       "L 1503 0 \n",
       "L 191 3500 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6e\" d=\"M 3513 2113 \n",
       "L 3513 0 \n",
       "L 2938 0 \n",
       "L 2938 2094 \n",
       "Q 2938 2591 2744 2837 \n",
       "Q 2550 3084 2163 3084 \n",
       "Q 1697 3084 1428 2787 \n",
       "Q 1159 2491 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1366 3272 1645 3428 \n",
       "Q 1925 3584 2291 3584 \n",
       "Q 2894 3584 3203 3211 \n",
       "Q 3513 2838 3513 2113 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-75\" d=\"M 544 1381 \n",
       "L 544 3500 \n",
       "L 1119 3500 \n",
       "L 1119 1403 \n",
       "Q 1119 906 1312 657 \n",
       "Q 1506 409 1894 409 \n",
       "Q 2359 409 2629 706 \n",
       "Q 2900 1003 2900 1516 \n",
       "L 2900 3500 \n",
       "L 3475 3500 \n",
       "L 3475 0 \n",
       "L 2900 0 \n",
       "L 2900 538 \n",
       "Q 2691 219 2414 64 \n",
       "Q 2138 -91 1772 -91 \n",
       "Q 1169 -91 856 284 \n",
       "Q 544 659 544 1381 \n",
       "z\n",
       "M 1991 3584 \n",
       "L 1991 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_15\">\n",
       "     <!-- 1e8 -->\n",
       "     <g transform=\"translate(43.78125 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-38\" x=\"125.146484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_13\">\n",
       "    <path d=\"M 94.147376 286.918125 \n",
       "L 119.42767 274.621403 \n",
       "L 144.985771 258.725029 \n",
       "L 170.543871 220.93204 \n",
       "L 195.54636 225.713152 \n",
       "L 220.826655 241.934898 \n",
       "L 246.384755 225.745211 \n",
       "L 271.942855 197.438147 \n",
       "L 296.945344 211.715263 \n",
       "L 322.225639 201.53954 \n",
       "L 347.783739 163.547985 \n",
       "L 373.341839 132.397786 \n",
       "L 398.344329 166.414159 \n",
       "L 423.624623 145.645924 \n",
       "L 449.182724 131.21318 \n",
       "L 474.740824 70.672271 \n",
       "L 500.021119 114.721585 \n",
       "L 525.301413 34.918125 \n",
       "L 550.859513 230.14696 \n",
       "\" clip-path=\"url(#p5a19a44960)\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 43.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 601.78125 299.518125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_5\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 601.78125 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_6\">\n",
       "    <path d=\"M 43.78125 22.318125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_16\">\n",
       "    <!-- revenue -->\n",
       "    <g transform=\"translate(298.217812 16.318125)scale(0.12 -0.12)\">\n",
       "     <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       "  <g id=\"axes_2\">\n",
       "   <g id=\"matplotlib.axis_3\">\n",
       "    <g id=\"ytick_7\">\n",
       "     <g id=\"line2d_14\">\n",
       "      <defs>\n",
       "       <path id=\"mf8efbc007e\" d=\"M 0 0 \n",
       "L 3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf8efbc007e\" x=\"601.78125\" y=\"268.726757\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_17\">\n",
       "      <!-- 0.2 -->\n",
       "      <g transform=\"translate(608.78125 272.525976)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_8\">\n",
       "     <g id=\"line2d_15\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf8efbc007e\" x=\"601.78125\" y=\"226.741846\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_18\">\n",
       "      <!-- 0.4 -->\n",
       "      <g transform=\"translate(608.78125 230.541065)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-34\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_9\">\n",
       "     <g id=\"line2d_16\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf8efbc007e\" x=\"601.78125\" y=\"184.756935\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_19\">\n",
       "      <!-- 0.6 -->\n",
       "      <g transform=\"translate(608.78125 188.556154)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-36\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_10\">\n",
       "     <g id=\"line2d_17\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf8efbc007e\" x=\"601.78125\" y=\"142.772024\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_20\">\n",
       "      <!-- 0.8 -->\n",
       "      <g transform=\"translate(608.78125 146.571242)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-38\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_11\">\n",
       "     <g id=\"line2d_18\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf8efbc007e\" x=\"601.78125\" y=\"100.787113\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_21\">\n",
       "      <!-- 1.0 -->\n",
       "      <g transform=\"translate(608.78125 104.586331)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_12\">\n",
       "     <g id=\"line2d_19\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf8efbc007e\" x=\"601.78125\" y=\"58.802202\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_22\">\n",
       "      <!-- 1.2 -->\n",
       "      <g transform=\"translate(608.78125 62.60142)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_23\">\n",
       "     <!-- csmar -->\n",
       "     <g transform=\"translate(636.282813 176.261875)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-63\" d=\"M 3122 3366 \n",
       "L 3122 2828 \n",
       "Q 2878 2963 2633 3030 \n",
       "Q 2388 3097 2138 3097 \n",
       "Q 1578 3097 1268 2742 \n",
       "Q 959 2388 959 1747 \n",
       "Q 959 1106 1268 751 \n",
       "Q 1578 397 2138 397 \n",
       "Q 2388 397 2633 464 \n",
       "Q 2878 531 3122 666 \n",
       "L 3122 134 \n",
       "Q 2881 22 2623 -34 \n",
       "Q 2366 -91 2075 -91 \n",
       "Q 1284 -91 818 406 \n",
       "Q 353 903 353 1747 \n",
       "Q 353 2603 823 3093 \n",
       "Q 1294 3584 2113 3584 \n",
       "Q 2378 3584 2631 3529 \n",
       "Q 2884 3475 3122 3366 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-73\" d=\"M 2834 3397 \n",
       "L 2834 2853 \n",
       "Q 2591 2978 2328 3040 \n",
       "Q 2066 3103 1784 3103 \n",
       "Q 1356 3103 1142 2972 \n",
       "Q 928 2841 928 2578 \n",
       "Q 928 2378 1081 2264 \n",
       "Q 1234 2150 1697 2047 \n",
       "L 1894 2003 \n",
       "Q 2506 1872 2764 1633 \n",
       "Q 3022 1394 3022 966 \n",
       "Q 3022 478 2636 193 \n",
       "Q 2250 -91 1575 -91 \n",
       "Q 1294 -91 989 -36 \n",
       "Q 684 19 347 128 \n",
       "L 347 722 \n",
       "Q 666 556 975 473 \n",
       "Q 1284 391 1588 391 \n",
       "Q 1994 391 2212 530 \n",
       "Q 2431 669 2431 922 \n",
       "Q 2431 1156 2273 1281 \n",
       "Q 2116 1406 1581 1522 \n",
       "L 1381 1569 \n",
       "Q 847 1681 609 1914 \n",
       "Q 372 2147 372 2553 \n",
       "Q 372 3047 722 3315 \n",
       "Q 1072 3584 1716 3584 \n",
       "Q 2034 3584 2315 3537 \n",
       "Q 2597 3491 2834 3397 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-61\" d=\"M 2194 1759 \n",
       "Q 1497 1759 1228 1600 \n",
       "Q 959 1441 959 1056 \n",
       "Q 959 750 1161 570 \n",
       "Q 1363 391 1709 391 \n",
       "Q 2188 391 2477 730 \n",
       "Q 2766 1069 2766 1631 \n",
       "L 2766 1759 \n",
       "L 2194 1759 \n",
       "z\n",
       "M 3341 1997 \n",
       "L 3341 0 \n",
       "L 2766 0 \n",
       "L 2766 531 \n",
       "Q 2569 213 2275 61 \n",
       "Q 1981 -91 1556 -91 \n",
       "Q 1019 -91 701 211 \n",
       "Q 384 513 384 1019 \n",
       "Q 384 1609 779 1909 \n",
       "Q 1175 2209 1959 2209 \n",
       "L 2766 2209 \n",
       "L 2766 2266 \n",
       "Q 2766 2663 2505 2880 \n",
       "Q 2244 3097 1772 3097 \n",
       "Q 1472 3097 1187 3025 \n",
       "Q 903 2953 641 2809 \n",
       "L 641 3341 \n",
       "Q 956 3463 1253 3523 \n",
       "Q 1550 3584 1831 3584 \n",
       "Q 2591 3584 2966 3190 \n",
       "Q 3341 2797 3341 1997 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_24\">\n",
       "     <!-- 1e10 -->\n",
       "     <g transform=\"translate(576.540625 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-31\" x=\"125.146484\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-30\" x=\"188.769531\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_20\">\n",
       "    <path d=\"M 69.144886 232.008591 \n",
       "L 94.147376 286.918125 \n",
       "L 119.42767 264.957538 \n",
       "L 144.985771 238.238354 \n",
       "L 170.543871 212.835062 \n",
       "L 170.821676 212.835062 \n",
       "L 195.54636 281.051692 \n",
       "L 220.826655 252.239113 \n",
       "L 246.384755 216.392571 \n",
       "L 271.942855 177.260467 \n",
       "L 272.220661 177.260467 \n",
       "L 296.945344 272.079052 \n",
       "L 322.225639 231.220965 \n",
       "L 347.783739 182.162423 \n",
       "L 373.341839 131.541299 \n",
       "L 373.619645 131.541299 \n",
       "L 398.344329 261.26155 \n",
       "L 423.624623 209.137089 \n",
       "L 449.182724 143.877393 \n",
       "L 474.740824 76.832593 \n",
       "L 475.018629 76.832593 \n",
       "L 500.021119 266.972054 \n",
       "L 525.301413 210.757693 \n",
       "L 550.859513 131.482235 \n",
       "L 576.417614 34.918125 \n",
       "\" clip-path=\"url(#p5a19a44960)\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_7\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 43.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_8\">\n",
       "    <path d=\"M 601.78125 299.518125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_9\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 601.78125 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_10\">\n",
       "    <path d=\"M 43.78125 22.318125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"legend_1\">\n",
       "    <g id=\"patch_11\">\n",
       "     <path d=\"M 50.78125 59.674375 \n",
       "L 135.81875 59.674375 \n",
       "Q 137.81875 59.674375 137.81875 57.674375 \n",
       "L 137.81875 29.318125 \n",
       "Q 137.81875 27.318125 135.81875 27.318125 \n",
       "L 50.78125 27.318125 \n",
       "Q 48.78125 27.318125 48.78125 29.318125 \n",
       "L 48.78125 57.674375 \n",
       "Q 48.78125 59.674375 50.78125 59.674375 \n",
       "z\n",
       "\" style=\"fill: #ffffff; opacity: 0.8; stroke: #cccccc; stroke-linejoin: miter\"/>\n",
       "    </g>\n",
       "    <g id=\"line2d_21\">\n",
       "     <path d=\"M 52.78125 35.416562 \n",
       "L 62.78125 35.416562 \n",
       "L 72.78125 35.416562 \n",
       "\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_25\">\n",
       "     <!-- onlinedata -->\n",
       "     <g transform=\"translate(80.78125 38.916562)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-6f\" d=\"M 1959 3097 \n",
       "Q 1497 3097 1228 2736 \n",
       "Q 959 2375 959 1747 \n",
       "Q 959 1119 1226 758 \n",
       "Q 1494 397 1959 397 \n",
       "Q 2419 397 2687 759 \n",
       "Q 2956 1122 2956 1747 \n",
       "Q 2956 2369 2687 2733 \n",
       "Q 2419 3097 1959 3097 \n",
       "z\n",
       "M 1959 3584 \n",
       "Q 2709 3584 3137 3096 \n",
       "Q 3566 2609 3566 1747 \n",
       "Q 3566 888 3137 398 \n",
       "Q 2709 -91 1959 -91 \n",
       "Q 1206 -91 779 398 \n",
       "Q 353 888 353 1747 \n",
       "Q 353 2609 779 3096 \n",
       "Q 1206 3584 1959 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6c\" d=\"M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-64\" d=\"M 2906 2969 \n",
       "L 2906 4863 \n",
       "L 3481 4863 \n",
       "L 3481 0 \n",
       "L 2906 0 \n",
       "L 2906 525 \n",
       "Q 2725 213 2448 61 \n",
       "Q 2172 -91 1784 -91 \n",
       "Q 1150 -91 751 415 \n",
       "Q 353 922 353 1747 \n",
       "Q 353 2572 751 3078 \n",
       "Q 1150 3584 1784 3584 \n",
       "Q 2172 3584 2448 3432 \n",
       "Q 2725 3281 2906 2969 \n",
       "z\n",
       "M 947 1747 \n",
       "Q 947 1113 1208 752 \n",
       "Q 1469 391 1925 391 \n",
       "Q 2381 391 2643 752 \n",
       "Q 2906 1113 2906 1747 \n",
       "Q 2906 2381 2643 2742 \n",
       "Q 2381 3103 1925 3103 \n",
       "Q 1469 3103 1208 2742 \n",
       "Q 947 2381 947 1747 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-6f\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"61.181641\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6c\" x=\"124.560547\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"152.34375\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"180.126953\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"243.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.029297\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.785156\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"468.994141\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_22\">\n",
       "     <path d=\"M 52.78125 50.094688 \n",
       "L 62.78125 50.094688 \n",
       "L 72.78125 50.094688 \n",
       "\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_26\">\n",
       "     <!-- csmardata -->\n",
       "     <g transform=\"translate(80.78125 53.594688)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.134766\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.611328\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.890625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"469.099609\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       " </g>\n",
       " <defs>\n",
       "  <clipPath id=\"p5a19a44960\">\n",
       "   <rect x=\"43.78125\" y=\"22.318125\" width=\"558\" height=\"277.2\"/>\n",
       "  </clipPath>\n",
       " </defs>\n",
       "</svg>\n"
      ],
      "text/plain": [
       "<Figure size 1000x500 with 2 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig = plt.figure(figsize=(10, 5))\n",
    "ax1 = fig.add_subplot(1, 1, 1)  #(x, x, x)这里前两个表示几*几的网格，最后一个表示第几子图\n",
    "ax1.plot(Qdata2['晨光文具（603899.SH）'],color='red',label='onlinedata')\n",
    "ax1.set_xlabel('time')  # 设置横坐标标签\n",
    "ax1.set_ylabel('revenue')  # 设置左边纵坐标标签\n",
    "ax1.set_title(\"revenue\")  # 给整张图命名\n",
    "data_format = mdates.DateFormatter('%Y')\n",
    "ax1.xaxis.set_major_formatter(data_format)\n",
    "ax1.xaxis.set_major_locator(mdates.YearLocator())\n",
    "plt.xticks(rotation = 90)\n",
    "ax2 = ax1.twinx()  #twinx()函数表示共享x轴\n",
    "ax2.plot(finaldata['晨光文具'],color='blue',label='csmardata')\n",
    "ax2.set_ylabel('csmar')  # 设置右边纵坐标标签\n",
    "lines, labels = ax1.get_legend_handles_labels()\n",
    "lines2, labels2 = ax2.get_legend_handles_labels()\n",
    "ax2.legend(lines + lines2, labels + labels2, loc='upper left')\n",
    "fig = plt.gcf()\n",
    "fig.savefig('晨光文具.pdf', bbox_inches='tight')\n",
    "plt.show();"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 47,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
       "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"645.5625pt\" height=\"352.84625pt\" viewBox=\"0 0 645.5625 352.84625\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">\n",
       " <metadata>\n",
       "  <rdf:RDF xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n",
       "   <cc:Work>\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\n",
       "    <dc:date>2024-12-19T16:25:01.753842</dc:date>\n",
       "    <dc:format>image/svg+xml</dc:format>\n",
       "    <dc:creator>\n",
       "     <cc:Agent>\n",
       "      <dc:title>Matplotlib v3.5.2, https://matplotlib.org/</dc:title>\n",
       "     </cc:Agent>\n",
       "    </dc:creator>\n",
       "   </cc:Work>\n",
       "  </rdf:RDF>\n",
       " </metadata>\n",
       " <defs>\n",
       "  <style type=\"text/css\">*{stroke-linejoin: round; stroke-linecap: butt}</style>\n",
       " </defs>\n",
       " <g id=\"figure_1\">\n",
       "  <g id=\"patch_1\">\n",
       "   <path d=\"M 0 352.84625 \n",
       "L 645.5625 352.84625 \n",
       "L 645.5625 0 \n",
       "L 0 0 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "  </g>\n",
       "  <g id=\"axes_1\">\n",
       "   <g id=\"patch_2\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 601.78125 299.518125 \n",
       "L 601.78125 22.318125 \n",
       "L 43.78125 22.318125 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_1\">\n",
       "    <g id=\"xtick_1\">\n",
       "     <g id=\"line2d_1\">\n",
       "      <defs>\n",
       "       <path id=\"m4602111791\" d=\"M 0 0 \n",
       "L 0 3.5 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m4602111791\" x=\"149.794237\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_1\">\n",
       "      <!-- 2017 -->\n",
       "      <g transform=\"translate(152.553612 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-32\" d=\"M 1228 531 \n",
       "L 3431 531 \n",
       "L 3431 0 \n",
       "L 469 0 \n",
       "L 469 531 \n",
       "Q 828 903 1448 1529 \n",
       "Q 2069 2156 2228 2338 \n",
       "Q 2531 2678 2651 2914 \n",
       "Q 2772 3150 2772 3378 \n",
       "Q 2772 3750 2511 3984 \n",
       "Q 2250 4219 1831 4219 \n",
       "Q 1534 4219 1204 4116 \n",
       "Q 875 4013 500 3803 \n",
       "L 500 4441 \n",
       "Q 881 4594 1212 4672 \n",
       "Q 1544 4750 1819 4750 \n",
       "Q 2544 4750 2975 4387 \n",
       "Q 3406 4025 3406 3419 \n",
       "Q 3406 3131 3298 2873 \n",
       "Q 3191 2616 2906 2266 \n",
       "Q 2828 2175 2409 1742 \n",
       "Q 1991 1309 1228 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-30\" d=\"M 2034 4250 \n",
       "Q 1547 4250 1301 3770 \n",
       "Q 1056 3291 1056 2328 \n",
       "Q 1056 1369 1301 889 \n",
       "Q 1547 409 2034 409 \n",
       "Q 2525 409 2770 889 \n",
       "Q 3016 1369 3016 2328 \n",
       "Q 3016 3291 2770 3770 \n",
       "Q 2525 4250 2034 4250 \n",
       "z\n",
       "M 2034 4750 \n",
       "Q 2819 4750 3233 4129 \n",
       "Q 3647 3509 3647 2328 \n",
       "Q 3647 1150 3233 529 \n",
       "Q 2819 -91 2034 -91 \n",
       "Q 1250 -91 836 529 \n",
       "Q 422 1150 422 2328 \n",
       "Q 422 3509 836 4129 \n",
       "Q 1250 4750 2034 4750 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-31\" d=\"M 794 531 \n",
       "L 1825 531 \n",
       "L 1825 4091 \n",
       "L 703 3866 \n",
       "L 703 4441 \n",
       "L 1819 4666 \n",
       "L 2450 4666 \n",
       "L 2450 531 \n",
       "L 3481 531 \n",
       "L 3481 0 \n",
       "L 794 0 \n",
       "L 794 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-37\" d=\"M 525 4666 \n",
       "L 3525 4666 \n",
       "L 3525 4397 \n",
       "L 1831 0 \n",
       "L 1172 0 \n",
       "L 2766 4134 \n",
       "L 525 4134 \n",
       "L 525 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-37\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_2\">\n",
       "     <g id=\"line2d_2\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m4602111791\" x=\"256.450081\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_2\">\n",
       "      <!-- 2018 -->\n",
       "      <g transform=\"translate(259.209456 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-38\" d=\"M 2034 2216 \n",
       "Q 1584 2216 1326 1975 \n",
       "Q 1069 1734 1069 1313 \n",
       "Q 1069 891 1326 650 \n",
       "Q 1584 409 2034 409 \n",
       "Q 2484 409 2743 651 \n",
       "Q 3003 894 3003 1313 \n",
       "Q 3003 1734 2745 1975 \n",
       "Q 2488 2216 2034 2216 \n",
       "z\n",
       "M 1403 2484 \n",
       "Q 997 2584 770 2862 \n",
       "Q 544 3141 544 3541 \n",
       "Q 544 4100 942 4425 \n",
       "Q 1341 4750 2034 4750 \n",
       "Q 2731 4750 3128 4425 \n",
       "Q 3525 4100 3525 3541 \n",
       "Q 3525 3141 3298 2862 \n",
       "Q 3072 2584 2669 2484 \n",
       "Q 3125 2378 3379 2068 \n",
       "Q 3634 1759 3634 1313 \n",
       "Q 3634 634 3220 271 \n",
       "Q 2806 -91 2034 -91 \n",
       "Q 1263 -91 848 271 \n",
       "Q 434 634 434 1313 \n",
       "Q 434 1759 690 2068 \n",
       "Q 947 2378 1403 2484 \n",
       "z\n",
       "M 1172 3481 \n",
       "Q 1172 3119 1398 2916 \n",
       "Q 1625 2713 2034 2713 \n",
       "Q 2441 2713 2670 2916 \n",
       "Q 2900 3119 2900 3481 \n",
       "Q 2900 3844 2670 4047 \n",
       "Q 2441 4250 2034 4250 \n",
       "Q 1625 4250 1398 4047 \n",
       "Q 1172 3844 1172 3481 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-38\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_3\">\n",
       "     <g id=\"line2d_3\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m4602111791\" x=\"363.105925\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_3\">\n",
       "      <!-- 2019 -->\n",
       "      <g transform=\"translate(365.8653 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-39\" d=\"M 703 97 \n",
       "L 703 672 \n",
       "Q 941 559 1184 500 \n",
       "Q 1428 441 1663 441 \n",
       "Q 2288 441 2617 861 \n",
       "Q 2947 1281 2994 2138 \n",
       "Q 2813 1869 2534 1725 \n",
       "Q 2256 1581 1919 1581 \n",
       "Q 1219 1581 811 2004 \n",
       "Q 403 2428 403 3163 \n",
       "Q 403 3881 828 4315 \n",
       "Q 1253 4750 1959 4750 \n",
       "Q 2769 4750 3195 4129 \n",
       "Q 3622 3509 3622 2328 \n",
       "Q 3622 1225 3098 567 \n",
       "Q 2575 -91 1691 -91 \n",
       "Q 1453 -91 1209 -44 \n",
       "Q 966 3 703 97 \n",
       "z\n",
       "M 1959 2075 \n",
       "Q 2384 2075 2632 2365 \n",
       "Q 2881 2656 2881 3163 \n",
       "Q 2881 3666 2632 3958 \n",
       "Q 2384 4250 1959 4250 \n",
       "Q 1534 4250 1286 3958 \n",
       "Q 1038 3666 1038 3163 \n",
       "Q 1038 2656 1286 2365 \n",
       "Q 1534 2075 1959 2075 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-39\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_4\">\n",
       "     <g id=\"line2d_4\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m4602111791\" x=\"469.761769\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_4\">\n",
       "      <!-- 2020 -->\n",
       "      <g transform=\"translate(472.521144 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_5\">\n",
       "     <g id=\"line2d_5\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m4602111791\" x=\"576.709821\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_5\">\n",
       "      <!-- 2021 -->\n",
       "      <g transform=\"translate(579.469196 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_6\">\n",
       "     <!-- time -->\n",
       "     <g transform=\"translate(311.485156 343.566563)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-74\" d=\"M 1172 4494 \n",
       "L 1172 3500 \n",
       "L 2356 3500 \n",
       "L 2356 3053 \n",
       "L 1172 3053 \n",
       "L 1172 1153 \n",
       "Q 1172 725 1289 603 \n",
       "Q 1406 481 1766 481 \n",
       "L 2356 481 \n",
       "L 2356 0 \n",
       "L 1766 0 \n",
       "Q 1100 0 847 248 \n",
       "Q 594 497 594 1153 \n",
       "L 594 3053 \n",
       "L 172 3053 \n",
       "L 172 3500 \n",
       "L 594 3500 \n",
       "L 594 4494 \n",
       "L 1172 4494 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-69\" d=\"M 603 3500 \n",
       "L 1178 3500 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 3500 \n",
       "z\n",
       "M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 4134 \n",
       "L 603 4134 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6d\" d=\"M 3328 2828 \n",
       "Q 3544 3216 3844 3400 \n",
       "Q 4144 3584 4550 3584 \n",
       "Q 5097 3584 5394 3201 \n",
       "Q 5691 2819 5691 2113 \n",
       "L 5691 0 \n",
       "L 5113 0 \n",
       "L 5113 2094 \n",
       "Q 5113 2597 4934 2840 \n",
       "Q 4756 3084 4391 3084 \n",
       "Q 3944 3084 3684 2787 \n",
       "Q 3425 2491 3425 1978 \n",
       "L 3425 0 \n",
       "L 2847 0 \n",
       "L 2847 2094 \n",
       "Q 2847 2600 2669 2842 \n",
       "Q 2491 3084 2119 3084 \n",
       "Q 1678 3084 1418 2786 \n",
       "Q 1159 2488 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1356 3278 1631 3431 \n",
       "Q 1906 3584 2284 3584 \n",
       "Q 2666 3584 2933 3390 \n",
       "Q 3200 3197 3328 2828 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-65\" d=\"M 3597 1894 \n",
       "L 3597 1613 \n",
       "L 953 1613 \n",
       "Q 991 1019 1311 708 \n",
       "Q 1631 397 2203 397 \n",
       "Q 2534 397 2845 478 \n",
       "Q 3156 559 3463 722 \n",
       "L 3463 178 \n",
       "Q 3153 47 2828 -22 \n",
       "Q 2503 -91 2169 -91 \n",
       "Q 1331 -91 842 396 \n",
       "Q 353 884 353 1716 \n",
       "Q 353 2575 817 3079 \n",
       "Q 1281 3584 2069 3584 \n",
       "Q 2775 3584 3186 3129 \n",
       "Q 3597 2675 3597 1894 \n",
       "z\n",
       "M 3022 2063 \n",
       "Q 3016 2534 2758 2815 \n",
       "Q 2500 3097 2075 3097 \n",
       "Q 1594 3097 1305 2825 \n",
       "Q 1016 2553 972 2059 \n",
       "L 3022 2063 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-74\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"39.208984\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"66.992188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"164.404297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_2\">\n",
       "    <g id=\"ytick_1\">\n",
       "     <g id=\"line2d_6\">\n",
       "      <defs>\n",
       "       <path id=\"m0118f400fa\" d=\"M 0 0 \n",
       "L -3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0118f400fa\" x=\"43.78125\" y=\"283.935425\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_7\">\n",
       "      <!-- 1.0 -->\n",
       "      <g transform=\"translate(20.878125 287.734643)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-2e\" d=\"M 684 794 \n",
       "L 1344 794 \n",
       "L 1344 0 \n",
       "L 684 0 \n",
       "L 684 794 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_7\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0118f400fa\" x=\"43.78125\" y=\"248.896443\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_8\">\n",
       "      <!-- 1.5 -->\n",
       "      <g transform=\"translate(20.878125 252.695662)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-35\" d=\"M 691 4666 \n",
       "L 3169 4666 \n",
       "L 3169 4134 \n",
       "L 1269 4134 \n",
       "L 1269 2991 \n",
       "Q 1406 3038 1543 3061 \n",
       "Q 1681 3084 1819 3084 \n",
       "Q 2600 3084 3056 2656 \n",
       "Q 3513 2228 3513 1497 \n",
       "Q 3513 744 3044 326 \n",
       "Q 2575 -91 1722 -91 \n",
       "Q 1428 -91 1123 -41 \n",
       "Q 819 9 494 109 \n",
       "L 494 744 \n",
       "Q 775 591 1075 516 \n",
       "Q 1375 441 1709 441 \n",
       "Q 2250 441 2565 725 \n",
       "Q 2881 1009 2881 1497 \n",
       "Q 2881 1984 2565 2268 \n",
       "Q 2250 2553 1709 2553 \n",
       "Q 1456 2553 1204 2497 \n",
       "Q 953 2441 691 2322 \n",
       "L 691 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_8\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0118f400fa\" x=\"43.78125\" y=\"213.857462\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_9\">\n",
       "      <!-- 2.0 -->\n",
       "      <g transform=\"translate(20.878125 217.65668)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_9\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0118f400fa\" x=\"43.78125\" y=\"178.81848\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_10\">\n",
       "      <!-- 2.5 -->\n",
       "      <g transform=\"translate(20.878125 182.617699)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_5\">\n",
       "     <g id=\"line2d_10\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0118f400fa\" x=\"43.78125\" y=\"143.779499\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_11\">\n",
       "      <!-- 3.0 -->\n",
       "      <g transform=\"translate(20.878125 147.578717)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-33\" d=\"M 2597 2516 \n",
       "Q 3050 2419 3304 2112 \n",
       "Q 3559 1806 3559 1356 \n",
       "Q 3559 666 3084 287 \n",
       "Q 2609 -91 1734 -91 \n",
       "Q 1441 -91 1130 -33 \n",
       "Q 819 25 488 141 \n",
       "L 488 750 \n",
       "Q 750 597 1062 519 \n",
       "Q 1375 441 1716 441 \n",
       "Q 2309 441 2620 675 \n",
       "Q 2931 909 2931 1356 \n",
       "Q 2931 1769 2642 2001 \n",
       "Q 2353 2234 1838 2234 \n",
       "L 1294 2234 \n",
       "L 1294 2753 \n",
       "L 1863 2753 \n",
       "Q 2328 2753 2575 2939 \n",
       "Q 2822 3125 2822 3475 \n",
       "Q 2822 3834 2567 4026 \n",
       "Q 2313 4219 1838 4219 \n",
       "Q 1578 4219 1281 4162 \n",
       "Q 984 4106 628 3988 \n",
       "L 628 4550 \n",
       "Q 988 4650 1302 4700 \n",
       "Q 1616 4750 1894 4750 \n",
       "Q 2613 4750 3031 4423 \n",
       "Q 3450 4097 3450 3541 \n",
       "Q 3450 3153 3228 2886 \n",
       "Q 3006 2619 2597 2516 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_6\">\n",
       "     <g id=\"line2d_11\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0118f400fa\" x=\"43.78125\" y=\"108.740517\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_12\">\n",
       "      <!-- 3.5 -->\n",
       "      <g transform=\"translate(20.878125 112.539736)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_7\">\n",
       "     <g id=\"line2d_12\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0118f400fa\" x=\"43.78125\" y=\"73.701536\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_13\">\n",
       "      <!-- 4.0 -->\n",
       "      <g transform=\"translate(20.878125 77.500754)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-34\" d=\"M 2419 4116 \n",
       "L 825 1625 \n",
       "L 2419 1625 \n",
       "L 2419 4116 \n",
       "z\n",
       "M 2253 4666 \n",
       "L 3047 4666 \n",
       "L 3047 1625 \n",
       "L 3713 1625 \n",
       "L 3713 1100 \n",
       "L 3047 1100 \n",
       "L 3047 0 \n",
       "L 2419 0 \n",
       "L 2419 1100 \n",
       "L 313 1100 \n",
       "L 313 1709 \n",
       "L 2253 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-34\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_8\">\n",
       "     <g id=\"line2d_13\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0118f400fa\" x=\"43.78125\" y=\"38.662554\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_14\">\n",
       "      <!-- 4.5 -->\n",
       "      <g transform=\"translate(20.878125 42.461773)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-34\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_15\">\n",
       "     <!-- revenue -->\n",
       "     <g transform=\"translate(14.798438 181.387656)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-72\" d=\"M 2631 2963 \n",
       "Q 2534 3019 2420 3045 \n",
       "Q 2306 3072 2169 3072 \n",
       "Q 1681 3072 1420 2755 \n",
       "Q 1159 2438 1159 1844 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1341 3275 1631 3429 \n",
       "Q 1922 3584 2338 3584 \n",
       "Q 2397 3584 2469 3576 \n",
       "Q 2541 3569 2628 3553 \n",
       "L 2631 2963 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-76\" d=\"M 191 3500 \n",
       "L 800 3500 \n",
       "L 1894 563 \n",
       "L 2988 3500 \n",
       "L 3597 3500 \n",
       "L 2284 0 \n",
       "L 1503 0 \n",
       "L 191 3500 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6e\" d=\"M 3513 2113 \n",
       "L 3513 0 \n",
       "L 2938 0 \n",
       "L 2938 2094 \n",
       "Q 2938 2591 2744 2837 \n",
       "Q 2550 3084 2163 3084 \n",
       "Q 1697 3084 1428 2787 \n",
       "Q 1159 2491 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1366 3272 1645 3428 \n",
       "Q 1925 3584 2291 3584 \n",
       "Q 2894 3584 3203 3211 \n",
       "Q 3513 2838 3513 2113 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-75\" d=\"M 544 1381 \n",
       "L 544 3500 \n",
       "L 1119 3500 \n",
       "L 1119 1403 \n",
       "Q 1119 906 1312 657 \n",
       "Q 1506 409 1894 409 \n",
       "Q 2359 409 2629 706 \n",
       "Q 2900 1003 2900 1516 \n",
       "L 2900 3500 \n",
       "L 3475 3500 \n",
       "L 3475 0 \n",
       "L 2900 0 \n",
       "L 2900 538 \n",
       "Q 2691 219 2414 64 \n",
       "Q 2138 -91 1772 -91 \n",
       "Q 1169 -91 856 284 \n",
       "Q 544 659 544 1381 \n",
       "z\n",
       "M 1991 3584 \n",
       "L 1991 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_16\">\n",
       "     <!-- 1e8 -->\n",
       "     <g transform=\"translate(43.78125 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-38\" x=\"125.146484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_14\">\n",
       "    <path d=\"M 69.144886 270.25437 \n",
       "L 95.735795 283.029362 \n",
       "L 122.618912 286.918125 \n",
       "L 149.502029 219.252218 \n",
       "L 175.800731 230.351759 \n",
       "L 202.39164 255.869284 \n",
       "L 229.274756 252.309327 \n",
       "L 256.157873 173.369944 \n",
       "L 282.456575 190.079495 \n",
       "L 309.047484 224.922996 \n",
       "L 335.930601 219.868708 \n",
       "L 362.813718 99.680627 \n",
       "L 389.112419 107.527672 \n",
       "L 415.703328 168.071694 \n",
       "L 442.586445 173.41724 \n",
       "L 469.469562 49.075326 \n",
       "L 496.060471 34.918125 \n",
       "L 522.65138 44.886699 \n",
       "L 549.534497 274.35075 \n",
       "\" clip-path=\"url(#p1b9bba8c79)\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 43.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 601.78125 299.518125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_5\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 601.78125 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_6\">\n",
       "    <path d=\"M 43.78125 22.318125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_17\">\n",
       "    <!-- revenue -->\n",
       "    <g transform=\"translate(298.217812 16.318125)scale(0.12 -0.12)\">\n",
       "     <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       "  <g id=\"axes_2\">\n",
       "   <g id=\"matplotlib.axis_3\">\n",
       "    <g id=\"ytick_9\">\n",
       "     <g id=\"line2d_15\">\n",
       "      <defs>\n",
       "       <path id=\"m213319a17c\" d=\"M 0 0 \n",
       "L 3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m213319a17c\" x=\"601.78125\" y=\"264.447008\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_18\">\n",
       "      <!-- 1.0 -->\n",
       "      <g transform=\"translate(608.78125 268.246227)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_10\">\n",
       "     <g id=\"line2d_16\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m213319a17c\" x=\"601.78125\" y=\"221.301643\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_19\">\n",
       "      <!-- 1.5 -->\n",
       "      <g transform=\"translate(608.78125 225.100862)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_11\">\n",
       "     <g id=\"line2d_17\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m213319a17c\" x=\"601.78125\" y=\"178.156279\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_20\">\n",
       "      <!-- 2.0 -->\n",
       "      <g transform=\"translate(608.78125 181.955498)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_12\">\n",
       "     <g id=\"line2d_18\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m213319a17c\" x=\"601.78125\" y=\"135.010915\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_21\">\n",
       "      <!-- 2.5 -->\n",
       "      <g transform=\"translate(608.78125 138.810134)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_13\">\n",
       "     <g id=\"line2d_19\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m213319a17c\" x=\"601.78125\" y=\"91.86555\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_22\">\n",
       "      <!-- 3.0 -->\n",
       "      <g transform=\"translate(608.78125 95.664769)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_14\">\n",
       "     <g id=\"line2d_20\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m213319a17c\" x=\"601.78125\" y=\"48.720186\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_23\">\n",
       "      <!-- 3.5 -->\n",
       "      <g transform=\"translate(608.78125 52.519405)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_24\">\n",
       "     <!-- csmar -->\n",
       "     <g transform=\"translate(636.282813 176.261875)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-63\" d=\"M 3122 3366 \n",
       "L 3122 2828 \n",
       "Q 2878 2963 2633 3030 \n",
       "Q 2388 3097 2138 3097 \n",
       "Q 1578 3097 1268 2742 \n",
       "Q 959 2388 959 1747 \n",
       "Q 959 1106 1268 751 \n",
       "Q 1578 397 2138 397 \n",
       "Q 2388 397 2633 464 \n",
       "Q 2878 531 3122 666 \n",
       "L 3122 134 \n",
       "Q 2881 22 2623 -34 \n",
       "Q 2366 -91 2075 -91 \n",
       "Q 1284 -91 818 406 \n",
       "Q 353 903 353 1747 \n",
       "Q 353 2603 823 3093 \n",
       "Q 1294 3584 2113 3584 \n",
       "Q 2378 3584 2631 3529 \n",
       "Q 2884 3475 3122 3366 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-73\" d=\"M 2834 3397 \n",
       "L 2834 2853 \n",
       "Q 2591 2978 2328 3040 \n",
       "Q 2066 3103 1784 3103 \n",
       "Q 1356 3103 1142 2972 \n",
       "Q 928 2841 928 2578 \n",
       "Q 928 2378 1081 2264 \n",
       "Q 1234 2150 1697 2047 \n",
       "L 1894 2003 \n",
       "Q 2506 1872 2764 1633 \n",
       "Q 3022 1394 3022 966 \n",
       "Q 3022 478 2636 193 \n",
       "Q 2250 -91 1575 -91 \n",
       "Q 1294 -91 989 -36 \n",
       "Q 684 19 347 128 \n",
       "L 347 722 \n",
       "Q 666 556 975 473 \n",
       "Q 1284 391 1588 391 \n",
       "Q 1994 391 2212 530 \n",
       "Q 2431 669 2431 922 \n",
       "Q 2431 1156 2273 1281 \n",
       "Q 2116 1406 1581 1522 \n",
       "L 1381 1569 \n",
       "Q 847 1681 609 1914 \n",
       "Q 372 2147 372 2553 \n",
       "Q 372 3047 722 3315 \n",
       "Q 1072 3584 1716 3584 \n",
       "Q 2034 3584 2315 3537 \n",
       "Q 2597 3491 2834 3397 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-61\" d=\"M 2194 1759 \n",
       "Q 1497 1759 1228 1600 \n",
       "Q 959 1441 959 1056 \n",
       "Q 959 750 1161 570 \n",
       "Q 1363 391 1709 391 \n",
       "Q 2188 391 2477 730 \n",
       "Q 2766 1069 2766 1631 \n",
       "L 2766 1759 \n",
       "L 2194 1759 \n",
       "z\n",
       "M 3341 1997 \n",
       "L 3341 0 \n",
       "L 2766 0 \n",
       "L 2766 531 \n",
       "Q 2569 213 2275 61 \n",
       "Q 1981 -91 1556 -91 \n",
       "Q 1019 -91 701 211 \n",
       "Q 384 513 384 1019 \n",
       "Q 384 1609 779 1909 \n",
       "Q 1175 2209 1959 2209 \n",
       "L 2766 2209 \n",
       "L 2766 2266 \n",
       "Q 2766 2663 2505 2880 \n",
       "Q 2244 3097 1772 3097 \n",
       "Q 1472 3097 1187 3025 \n",
       "Q 903 2953 641 2809 \n",
       "L 641 3341 \n",
       "Q 956 3463 1253 3523 \n",
       "Q 1550 3584 1831 3584 \n",
       "Q 2591 3584 2966 3190 \n",
       "Q 3341 2797 3341 1997 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_25\">\n",
       "     <!-- 1e9 -->\n",
       "     <g transform=\"translate(582.903125 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-39\" x=\"125.146484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_21\">\n",
       "    <path d=\"M 363.105925 174.615333 \n",
       "M 442.586445 202.249326 \n",
       "L 469.469562 118.791366 \n",
       "L 469.761769 118.791366 \n",
       "L 496.060471 286.918125 \n",
       "L 522.65138 202.539524 \n",
       "L 549.534497 135.217874 \n",
       "L 576.417614 34.918125 \n",
       "\" clip-path=\"url(#p1b9bba8c79)\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_7\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 43.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_8\">\n",
       "    <path d=\"M 601.78125 299.518125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_9\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 601.78125 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_10\">\n",
       "    <path d=\"M 43.78125 22.318125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"legend_1\">\n",
       "    <g id=\"patch_11\">\n",
       "     <path d=\"M 50.78125 59.674375 \n",
       "L 135.81875 59.674375 \n",
       "Q 137.81875 59.674375 137.81875 57.674375 \n",
       "L 137.81875 29.318125 \n",
       "Q 137.81875 27.318125 135.81875 27.318125 \n",
       "L 50.78125 27.318125 \n",
       "Q 48.78125 27.318125 48.78125 29.318125 \n",
       "L 48.78125 57.674375 \n",
       "Q 48.78125 59.674375 50.78125 59.674375 \n",
       "z\n",
       "\" style=\"fill: #ffffff; opacity: 0.8; stroke: #cccccc; stroke-linejoin: miter\"/>\n",
       "    </g>\n",
       "    <g id=\"line2d_22\">\n",
       "     <path d=\"M 52.78125 35.416562 \n",
       "L 62.78125 35.416562 \n",
       "L 72.78125 35.416562 \n",
       "\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_26\">\n",
       "     <!-- onlinedata -->\n",
       "     <g transform=\"translate(80.78125 38.916562)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-6f\" d=\"M 1959 3097 \n",
       "Q 1497 3097 1228 2736 \n",
       "Q 959 2375 959 1747 \n",
       "Q 959 1119 1226 758 \n",
       "Q 1494 397 1959 397 \n",
       "Q 2419 397 2687 759 \n",
       "Q 2956 1122 2956 1747 \n",
       "Q 2956 2369 2687 2733 \n",
       "Q 2419 3097 1959 3097 \n",
       "z\n",
       "M 1959 3584 \n",
       "Q 2709 3584 3137 3096 \n",
       "Q 3566 2609 3566 1747 \n",
       "Q 3566 888 3137 398 \n",
       "Q 2709 -91 1959 -91 \n",
       "Q 1206 -91 779 398 \n",
       "Q 353 888 353 1747 \n",
       "Q 353 2609 779 3096 \n",
       "Q 1206 3584 1959 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6c\" d=\"M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-64\" d=\"M 2906 2969 \n",
       "L 2906 4863 \n",
       "L 3481 4863 \n",
       "L 3481 0 \n",
       "L 2906 0 \n",
       "L 2906 525 \n",
       "Q 2725 213 2448 61 \n",
       "Q 2172 -91 1784 -91 \n",
       "Q 1150 -91 751 415 \n",
       "Q 353 922 353 1747 \n",
       "Q 353 2572 751 3078 \n",
       "Q 1150 3584 1784 3584 \n",
       "Q 2172 3584 2448 3432 \n",
       "Q 2725 3281 2906 2969 \n",
       "z\n",
       "M 947 1747 \n",
       "Q 947 1113 1208 752 \n",
       "Q 1469 391 1925 391 \n",
       "Q 2381 391 2643 752 \n",
       "Q 2906 1113 2906 1747 \n",
       "Q 2906 2381 2643 2742 \n",
       "Q 2381 3103 1925 3103 \n",
       "Q 1469 3103 1208 2742 \n",
       "Q 947 2381 947 1747 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-6f\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"61.181641\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6c\" x=\"124.560547\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"152.34375\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"180.126953\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"243.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.029297\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.785156\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"468.994141\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_23\">\n",
       "     <path d=\"M 52.78125 50.094688 \n",
       "L 62.78125 50.094688 \n",
       "L 72.78125 50.094688 \n",
       "\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_27\">\n",
       "     <!-- csmardata -->\n",
       "     <g transform=\"translate(80.78125 53.594688)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.134766\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.611328\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.890625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"469.099609\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       " </g>\n",
       " <defs>\n",
       "  <clipPath id=\"p1b9bba8c79\">\n",
       "   <rect x=\"43.78125\" y=\"22.318125\" width=\"558\" height=\"277.2\"/>\n",
       "  </clipPath>\n",
       " </defs>\n",
       "</svg>\n"
      ],
      "text/plain": [
       "<Figure size 1000x500 with 2 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig = plt.figure(figsize=(10, 5))\n",
    "ax1 = fig.add_subplot(1, 1, 1)\n",
    "ax1.plot(Qdata2['小熊电器（002959.SZ）'],color='red',label='onlinedata')\n",
    "ax1.set_xlabel('time')  # 设置横坐标标签\n",
    "ax1.set_ylabel('revenue')  # 设置左边纵坐标标签\n",
    "ax1.set_title(\"revenue\")  # 给整张图命名\n",
    "data_format = mdates.DateFormatter('%Y')\n",
    "ax1.xaxis.set_major_formatter(data_format)\n",
    "ax1.xaxis.set_major_locator(mdates.YearLocator())\n",
    "plt.xticks(rotation = 90)\n",
    "ax2 = ax1.twinx()  #twinx()函数表示共享x轴\n",
    "ax2.plot(finaldata['小熊电器'],color='blue',label='csmardata')\n",
    "ax2.set_ylabel('csmar')  # 设置右边纵坐标标签\n",
    "lines, labels = ax1.get_legend_handles_labels()\n",
    "lines2, labels2 = ax2.get_legend_handles_labels()\n",
    "ax2.legend(lines + lines2, labels + labels2, loc='upper left')\n",
    "fig = plt.gcf()\n",
    "fig.savefig('小熊电器.pdf', bbox_inches='tight')\n",
    "plt.show();"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
       "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"642.384375pt\" height=\"352.84625pt\" viewBox=\"0 0 642.384375 352.84625\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">\n",
       " <metadata>\n",
       "  <rdf:RDF xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n",
       "   <cc:Work>\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\n",
       "    <dc:date>2024-12-19T16:25:54.857348</dc:date>\n",
       "    <dc:format>image/svg+xml</dc:format>\n",
       "    <dc:creator>\n",
       "     <cc:Agent>\n",
       "      <dc:title>Matplotlib v3.5.2, https://matplotlib.org/</dc:title>\n",
       "     </cc:Agent>\n",
       "    </dc:creator>\n",
       "   </cc:Work>\n",
       "  </rdf:RDF>\n",
       " </metadata>\n",
       " <defs>\n",
       "  <style type=\"text/css\">*{stroke-linejoin: round; stroke-linecap: butt}</style>\n",
       " </defs>\n",
       " <g id=\"figure_1\">\n",
       "  <g id=\"patch_1\">\n",
       "   <path d=\"M 0 352.84625 \n",
       "L 642.384375 352.84625 \n",
       "L 642.384375 0 \n",
       "L 0 0 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "  </g>\n",
       "  <g id=\"axes_1\">\n",
       "   <g id=\"patch_2\">\n",
       "    <path d=\"M 50.14375 299.518125 \n",
       "L 608.14375 299.518125 \n",
       "L 608.14375 22.318125 \n",
       "L 50.14375 22.318125 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_1\">\n",
       "    <g id=\"xtick_1\">\n",
       "     <g id=\"line2d_1\">\n",
       "      <defs>\n",
       "       <path id=\"m8fb0057758\" d=\"M 0 0 \n",
       "L 0 3.5 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m8fb0057758\" x=\"75.507386\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_1\">\n",
       "      <!-- 2016 -->\n",
       "      <g transform=\"translate(78.266761 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-32\" d=\"M 1228 531 \n",
       "L 3431 531 \n",
       "L 3431 0 \n",
       "L 469 0 \n",
       "L 469 531 \n",
       "Q 828 903 1448 1529 \n",
       "Q 2069 2156 2228 2338 \n",
       "Q 2531 2678 2651 2914 \n",
       "Q 2772 3150 2772 3378 \n",
       "Q 2772 3750 2511 3984 \n",
       "Q 2250 4219 1831 4219 \n",
       "Q 1534 4219 1204 4116 \n",
       "Q 875 4013 500 3803 \n",
       "L 500 4441 \n",
       "Q 881 4594 1212 4672 \n",
       "Q 1544 4750 1819 4750 \n",
       "Q 2544 4750 2975 4387 \n",
       "Q 3406 4025 3406 3419 \n",
       "Q 3406 3131 3298 2873 \n",
       "Q 3191 2616 2906 2266 \n",
       "Q 2828 2175 2409 1742 \n",
       "Q 1991 1309 1228 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-30\" d=\"M 2034 4250 \n",
       "Q 1547 4250 1301 3770 \n",
       "Q 1056 3291 1056 2328 \n",
       "Q 1056 1369 1301 889 \n",
       "Q 1547 409 2034 409 \n",
       "Q 2525 409 2770 889 \n",
       "Q 3016 1369 3016 2328 \n",
       "Q 3016 3291 2770 3770 \n",
       "Q 2525 4250 2034 4250 \n",
       "z\n",
       "M 2034 4750 \n",
       "Q 2819 4750 3233 4129 \n",
       "Q 3647 3509 3647 2328 \n",
       "Q 3647 1150 3233 529 \n",
       "Q 2819 -91 2034 -91 \n",
       "Q 1250 -91 836 529 \n",
       "Q 422 1150 422 2328 \n",
       "Q 422 3509 836 4129 \n",
       "Q 1250 4750 2034 4750 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-31\" d=\"M 794 531 \n",
       "L 1825 531 \n",
       "L 1825 4091 \n",
       "L 703 3866 \n",
       "L 703 4441 \n",
       "L 1819 4666 \n",
       "L 2450 4666 \n",
       "L 2450 531 \n",
       "L 3481 531 \n",
       "L 3481 0 \n",
       "L 794 0 \n",
       "L 794 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-36\" d=\"M 2113 2584 \n",
       "Q 1688 2584 1439 2293 \n",
       "Q 1191 2003 1191 1497 \n",
       "Q 1191 994 1439 701 \n",
       "Q 1688 409 2113 409 \n",
       "Q 2538 409 2786 701 \n",
       "Q 3034 994 3034 1497 \n",
       "Q 3034 2003 2786 2293 \n",
       "Q 2538 2584 2113 2584 \n",
       "z\n",
       "M 3366 4563 \n",
       "L 3366 3988 \n",
       "Q 3128 4100 2886 4159 \n",
       "Q 2644 4219 2406 4219 \n",
       "Q 1781 4219 1451 3797 \n",
       "Q 1122 3375 1075 2522 \n",
       "Q 1259 2794 1537 2939 \n",
       "Q 1816 3084 2150 3084 \n",
       "Q 2853 3084 3261 2657 \n",
       "Q 3669 2231 3669 1497 \n",
       "Q 3669 778 3244 343 \n",
       "Q 2819 -91 2113 -91 \n",
       "Q 1303 -91 875 529 \n",
       "Q 447 1150 447 2328 \n",
       "Q 447 3434 972 4092 \n",
       "Q 1497 4750 2381 4750 \n",
       "Q 2619 4750 2861 4703 \n",
       "Q 3103 4656 3366 4563 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-36\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_2\">\n",
       "     <g id=\"line2d_2\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m8fb0057758\" x=\"177.184176\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_2\">\n",
       "      <!-- 2017 -->\n",
       "      <g transform=\"translate(179.943551 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-37\" d=\"M 525 4666 \n",
       "L 3525 4666 \n",
       "L 3525 4397 \n",
       "L 1831 0 \n",
       "L 1172 0 \n",
       "L 2766 4134 \n",
       "L 525 4134 \n",
       "L 525 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-37\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_3\">\n",
       "     <g id=\"line2d_3\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m8fb0057758\" x=\"278.583161\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_3\">\n",
       "      <!-- 2018 -->\n",
       "      <g transform=\"translate(281.342536 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-38\" d=\"M 2034 2216 \n",
       "Q 1584 2216 1326 1975 \n",
       "Q 1069 1734 1069 1313 \n",
       "Q 1069 891 1326 650 \n",
       "Q 1584 409 2034 409 \n",
       "Q 2484 409 2743 651 \n",
       "Q 3003 894 3003 1313 \n",
       "Q 3003 1734 2745 1975 \n",
       "Q 2488 2216 2034 2216 \n",
       "z\n",
       "M 1403 2484 \n",
       "Q 997 2584 770 2862 \n",
       "Q 544 3141 544 3541 \n",
       "Q 544 4100 942 4425 \n",
       "Q 1341 4750 2034 4750 \n",
       "Q 2731 4750 3128 4425 \n",
       "Q 3525 4100 3525 3541 \n",
       "Q 3525 3141 3298 2862 \n",
       "Q 3072 2584 2669 2484 \n",
       "Q 3125 2378 3379 2068 \n",
       "Q 3634 1759 3634 1313 \n",
       "Q 3634 634 3220 271 \n",
       "Q 2806 -91 2034 -91 \n",
       "Q 1263 -91 848 271 \n",
       "Q 434 634 434 1313 \n",
       "Q 434 1759 690 2068 \n",
       "Q 947 2378 1403 2484 \n",
       "z\n",
       "M 1172 3481 \n",
       "Q 1172 3119 1398 2916 \n",
       "Q 1625 2713 2034 2713 \n",
       "Q 2441 2713 2670 2916 \n",
       "Q 2900 3119 2900 3481 \n",
       "Q 2900 3844 2670 4047 \n",
       "Q 2441 4250 2034 4250 \n",
       "Q 1625 4250 1398 4047 \n",
       "Q 1172 3844 1172 3481 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-38\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_4\">\n",
       "     <g id=\"line2d_4\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m8fb0057758\" x=\"379.982145\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_4\">\n",
       "      <!-- 2019 -->\n",
       "      <g transform=\"translate(382.74152 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-39\" d=\"M 703 97 \n",
       "L 703 672 \n",
       "Q 941 559 1184 500 \n",
       "Q 1428 441 1663 441 \n",
       "Q 2288 441 2617 861 \n",
       "Q 2947 1281 2994 2138 \n",
       "Q 2813 1869 2534 1725 \n",
       "Q 2256 1581 1919 1581 \n",
       "Q 1219 1581 811 2004 \n",
       "Q 403 2428 403 3163 \n",
       "Q 403 3881 828 4315 \n",
       "Q 1253 4750 1959 4750 \n",
       "Q 2769 4750 3195 4129 \n",
       "Q 3622 3509 3622 2328 \n",
       "Q 3622 1225 3098 567 \n",
       "Q 2575 -91 1691 -91 \n",
       "Q 1453 -91 1209 -44 \n",
       "Q 966 3 703 97 \n",
       "z\n",
       "M 1959 2075 \n",
       "Q 2384 2075 2632 2365 \n",
       "Q 2881 2656 2881 3163 \n",
       "Q 2881 3666 2632 3958 \n",
       "Q 2384 4250 1959 4250 \n",
       "Q 1534 4250 1286 3958 \n",
       "Q 1038 3666 1038 3163 \n",
       "Q 1038 2656 1286 2365 \n",
       "Q 1534 2075 1959 2075 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-39\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_5\">\n",
       "     <g id=\"line2d_5\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m8fb0057758\" x=\"481.381129\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_5\">\n",
       "      <!-- 2020 -->\n",
       "      <g transform=\"translate(484.140504 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_6\">\n",
       "     <g id=\"line2d_6\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m8fb0057758\" x=\"583.057919\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_6\">\n",
       "      <!-- 2021 -->\n",
       "      <g transform=\"translate(585.817294 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_7\">\n",
       "     <!-- time -->\n",
       "     <g transform=\"translate(317.847656 343.566563)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-74\" d=\"M 1172 4494 \n",
       "L 1172 3500 \n",
       "L 2356 3500 \n",
       "L 2356 3053 \n",
       "L 1172 3053 \n",
       "L 1172 1153 \n",
       "Q 1172 725 1289 603 \n",
       "Q 1406 481 1766 481 \n",
       "L 2356 481 \n",
       "L 2356 0 \n",
       "L 1766 0 \n",
       "Q 1100 0 847 248 \n",
       "Q 594 497 594 1153 \n",
       "L 594 3053 \n",
       "L 172 3053 \n",
       "L 172 3500 \n",
       "L 594 3500 \n",
       "L 594 4494 \n",
       "L 1172 4494 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-69\" d=\"M 603 3500 \n",
       "L 1178 3500 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 3500 \n",
       "z\n",
       "M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 4134 \n",
       "L 603 4134 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6d\" d=\"M 3328 2828 \n",
       "Q 3544 3216 3844 3400 \n",
       "Q 4144 3584 4550 3584 \n",
       "Q 5097 3584 5394 3201 \n",
       "Q 5691 2819 5691 2113 \n",
       "L 5691 0 \n",
       "L 5113 0 \n",
       "L 5113 2094 \n",
       "Q 5113 2597 4934 2840 \n",
       "Q 4756 3084 4391 3084 \n",
       "Q 3944 3084 3684 2787 \n",
       "Q 3425 2491 3425 1978 \n",
       "L 3425 0 \n",
       "L 2847 0 \n",
       "L 2847 2094 \n",
       "Q 2847 2600 2669 2842 \n",
       "Q 2491 3084 2119 3084 \n",
       "Q 1678 3084 1418 2786 \n",
       "Q 1159 2488 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1356 3278 1631 3431 \n",
       "Q 1906 3584 2284 3584 \n",
       "Q 2666 3584 2933 3390 \n",
       "Q 3200 3197 3328 2828 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-65\" d=\"M 3597 1894 \n",
       "L 3597 1613 \n",
       "L 953 1613 \n",
       "Q 991 1019 1311 708 \n",
       "Q 1631 397 2203 397 \n",
       "Q 2534 397 2845 478 \n",
       "Q 3156 559 3463 722 \n",
       "L 3463 178 \n",
       "Q 3153 47 2828 -22 \n",
       "Q 2503 -91 2169 -91 \n",
       "Q 1331 -91 842 396 \n",
       "Q 353 884 353 1716 \n",
       "Q 353 2575 817 3079 \n",
       "Q 1281 3584 2069 3584 \n",
       "Q 2775 3584 3186 3129 \n",
       "Q 3597 2675 3597 1894 \n",
       "z\n",
       "M 3022 2063 \n",
       "Q 3016 2534 2758 2815 \n",
       "Q 2500 3097 2075 3097 \n",
       "Q 1594 3097 1305 2825 \n",
       "Q 1016 2553 972 2059 \n",
       "L 3022 2063 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-74\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"39.208984\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"66.992188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"164.404297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_2\">\n",
       "    <g id=\"ytick_1\">\n",
       "     <g id=\"line2d_7\">\n",
       "      <defs>\n",
       "       <path id=\"mf88c85036c\" d=\"M 0 0 \n",
       "L -3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf88c85036c\" x=\"50.14375\" y=\"292.544725\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_8\">\n",
       "      <!-- 0.00 -->\n",
       "      <g transform=\"translate(20.878125 296.343944)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-2e\" d=\"M 684 794 \n",
       "L 1344 794 \n",
       "L 1344 0 \n",
       "L 684 0 \n",
       "L 684 794 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"159.033203\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_8\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf88c85036c\" x=\"50.14375\" y=\"260.548874\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_9\">\n",
       "      <!-- 0.25 -->\n",
       "      <g transform=\"translate(20.878125 264.348092)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-35\" d=\"M 691 4666 \n",
       "L 3169 4666 \n",
       "L 3169 4134 \n",
       "L 1269 4134 \n",
       "L 1269 2991 \n",
       "Q 1406 3038 1543 3061 \n",
       "Q 1681 3084 1819 3084 \n",
       "Q 2600 3084 3056 2656 \n",
       "Q 3513 2228 3513 1497 \n",
       "Q 3513 744 3044 326 \n",
       "Q 2575 -91 1722 -91 \n",
       "Q 1428 -91 1123 -41 \n",
       "Q 819 9 494 109 \n",
       "L 494 744 \n",
       "Q 775 591 1075 516 \n",
       "Q 1375 441 1709 441 \n",
       "Q 2250 441 2565 725 \n",
       "Q 2881 1009 2881 1497 \n",
       "Q 2881 1984 2565 2268 \n",
       "Q 2250 2553 1709 2553 \n",
       "Q 1456 2553 1204 2497 \n",
       "Q 953 2441 691 2322 \n",
       "L 691 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"95.410156\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"159.033203\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_9\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf88c85036c\" x=\"50.14375\" y=\"228.553023\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_10\">\n",
       "      <!-- 0.50 -->\n",
       "      <g transform=\"translate(20.878125 232.352241)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"159.033203\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_10\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf88c85036c\" x=\"50.14375\" y=\"196.557172\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_11\">\n",
       "      <!-- 0.75 -->\n",
       "      <g transform=\"translate(20.878125 200.35639)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-37\" x=\"95.410156\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"159.033203\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_5\">\n",
       "     <g id=\"line2d_11\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf88c85036c\" x=\"50.14375\" y=\"164.56132\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_12\">\n",
       "      <!-- 1.00 -->\n",
       "      <g transform=\"translate(20.878125 168.360539)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"159.033203\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_6\">\n",
       "     <g id=\"line2d_12\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf88c85036c\" x=\"50.14375\" y=\"132.565469\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_13\">\n",
       "      <!-- 1.25 -->\n",
       "      <g transform=\"translate(20.878125 136.364688)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"95.410156\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"159.033203\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_7\">\n",
       "     <g id=\"line2d_13\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf88c85036c\" x=\"50.14375\" y=\"100.569618\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_14\">\n",
       "      <!-- 1.50 -->\n",
       "      <g transform=\"translate(20.878125 104.368837)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"159.033203\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_8\">\n",
       "     <g id=\"line2d_14\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf88c85036c\" x=\"50.14375\" y=\"68.573767\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_15\">\n",
       "      <!-- 1.75 -->\n",
       "      <g transform=\"translate(20.878125 72.372986)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-37\" x=\"95.410156\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"159.033203\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_9\">\n",
       "     <g id=\"line2d_15\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf88c85036c\" x=\"50.14375\" y=\"36.577916\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_16\">\n",
       "      <!-- 2.00 -->\n",
       "      <g transform=\"translate(20.878125 40.377135)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"159.033203\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_17\">\n",
       "     <!-- revenue -->\n",
       "     <g transform=\"translate(14.798437 181.387656)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-72\" d=\"M 2631 2963 \n",
       "Q 2534 3019 2420 3045 \n",
       "Q 2306 3072 2169 3072 \n",
       "Q 1681 3072 1420 2755 \n",
       "Q 1159 2438 1159 1844 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1341 3275 1631 3429 \n",
       "Q 1922 3584 2338 3584 \n",
       "Q 2397 3584 2469 3576 \n",
       "Q 2541 3569 2628 3553 \n",
       "L 2631 2963 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-76\" d=\"M 191 3500 \n",
       "L 800 3500 \n",
       "L 1894 563 \n",
       "L 2988 3500 \n",
       "L 3597 3500 \n",
       "L 2284 0 \n",
       "L 1503 0 \n",
       "L 191 3500 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6e\" d=\"M 3513 2113 \n",
       "L 3513 0 \n",
       "L 2938 0 \n",
       "L 2938 2094 \n",
       "Q 2938 2591 2744 2837 \n",
       "Q 2550 3084 2163 3084 \n",
       "Q 1697 3084 1428 2787 \n",
       "Q 1159 2491 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1366 3272 1645 3428 \n",
       "Q 1925 3584 2291 3584 \n",
       "Q 2894 3584 3203 3211 \n",
       "Q 3513 2838 3513 2113 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-75\" d=\"M 544 1381 \n",
       "L 544 3500 \n",
       "L 1119 3500 \n",
       "L 1119 1403 \n",
       "Q 1119 906 1312 657 \n",
       "Q 1506 409 1894 409 \n",
       "Q 2359 409 2629 706 \n",
       "Q 2900 1003 2900 1516 \n",
       "L 2900 3500 \n",
       "L 3475 3500 \n",
       "L 3475 0 \n",
       "L 2900 0 \n",
       "L 2900 538 \n",
       "Q 2691 219 2414 64 \n",
       "Q 2138 -91 1772 -91 \n",
       "Q 1169 -91 856 284 \n",
       "Q 544 659 544 1381 \n",
       "z\n",
       "M 1991 3584 \n",
       "L 1991 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_18\">\n",
       "     <!-- 1e7 -->\n",
       "     <g transform=\"translate(50.14375 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-37\" x=\"125.146484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_16\">\n",
       "    <path d=\"M 100.509876 283.951915 \n",
       "L 125.79017 283.444985 \n",
       "L 151.348271 286.918125 \n",
       "L 176.906371 283.665067 \n",
       "L 201.90886 281.789248 \n",
       "L 227.189155 269.215921 \n",
       "L 252.747255 266.672442 \n",
       "L 278.305355 250.077097 \n",
       "L 303.307844 251.643706 \n",
       "L 328.588139 245.841669 \n",
       "L 354.146239 234.364187 \n",
       "L 379.704339 220.98382 \n",
       "L 404.706829 228.705586 \n",
       "L 429.987123 219.33789 \n",
       "L 455.545224 208.610744 \n",
       "L 481.103324 146.17129 \n",
       "L 506.383619 154.117191 \n",
       "L 531.663913 34.918125 \n",
       "L 557.222013 236.388789 \n",
       "\" clip-path=\"url(#p710aa9c72b)\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 50.14375 299.518125 \n",
       "L 50.14375 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 608.14375 299.518125 \n",
       "L 608.14375 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_5\">\n",
       "    <path d=\"M 50.14375 299.518125 \n",
       "L 608.14375 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_6\">\n",
       "    <path d=\"M 50.14375 22.318125 \n",
       "L 608.14375 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_19\">\n",
       "    <!-- revenue -->\n",
       "    <g transform=\"translate(304.580312 16.318125)scale(0.12 -0.12)\">\n",
       "     <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       "  <g id=\"axes_2\">\n",
       "   <g id=\"matplotlib.axis_3\">\n",
       "    <g id=\"ytick_10\">\n",
       "     <g id=\"line2d_17\">\n",
       "      <defs>\n",
       "       <path id=\"m3ce3335d37\" d=\"M 0 0 \n",
       "L 3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m3ce3335d37\" x=\"608.14375\" y=\"272.198285\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_20\">\n",
       "      <!-- 1 -->\n",
       "      <g transform=\"translate(615.14375 275.997504)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_11\">\n",
       "     <g id=\"line2d_18\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m3ce3335d37\" x=\"608.14375\" y=\"214.65315\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_21\">\n",
       "      <!-- 2 -->\n",
       "      <g transform=\"translate(615.14375 218.452369)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_12\">\n",
       "     <g id=\"line2d_19\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m3ce3335d37\" x=\"608.14375\" y=\"157.108015\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_22\">\n",
       "      <!-- 3 -->\n",
       "      <g transform=\"translate(615.14375 160.907234)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-33\" d=\"M 2597 2516 \n",
       "Q 3050 2419 3304 2112 \n",
       "Q 3559 1806 3559 1356 \n",
       "Q 3559 666 3084 287 \n",
       "Q 2609 -91 1734 -91 \n",
       "Q 1441 -91 1130 -33 \n",
       "Q 819 25 488 141 \n",
       "L 488 750 \n",
       "Q 750 597 1062 519 \n",
       "Q 1375 441 1716 441 \n",
       "Q 2309 441 2620 675 \n",
       "Q 2931 909 2931 1356 \n",
       "Q 2931 1769 2642 2001 \n",
       "Q 2353 2234 1838 2234 \n",
       "L 1294 2234 \n",
       "L 1294 2753 \n",
       "L 1863 2753 \n",
       "Q 2328 2753 2575 2939 \n",
       "Q 2822 3125 2822 3475 \n",
       "Q 2822 3834 2567 4026 \n",
       "Q 2313 4219 1838 4219 \n",
       "Q 1578 4219 1281 4162 \n",
       "Q 984 4106 628 3988 \n",
       "L 628 4550 \n",
       "Q 988 4650 1302 4700 \n",
       "Q 1616 4750 1894 4750 \n",
       "Q 2613 4750 3031 4423 \n",
       "Q 3450 4097 3450 3541 \n",
       "Q 3450 3153 3228 2886 \n",
       "Q 3006 2619 2597 2516 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_13\">\n",
       "     <g id=\"line2d_20\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m3ce3335d37\" x=\"608.14375\" y=\"99.56288\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_23\">\n",
       "      <!-- 4 -->\n",
       "      <g transform=\"translate(615.14375 103.362099)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-34\" d=\"M 2419 4116 \n",
       "L 825 1625 \n",
       "L 2419 1625 \n",
       "L 2419 4116 \n",
       "z\n",
       "M 2253 4666 \n",
       "L 3047 4666 \n",
       "L 3047 1625 \n",
       "L 3713 1625 \n",
       "L 3713 1100 \n",
       "L 3047 1100 \n",
       "L 3047 0 \n",
       "L 2419 0 \n",
       "L 2419 1100 \n",
       "L 313 1100 \n",
       "L 313 1709 \n",
       "L 2253 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-34\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_14\">\n",
       "     <g id=\"line2d_21\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m3ce3335d37\" x=\"608.14375\" y=\"42.017745\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_24\">\n",
       "      <!-- 5 -->\n",
       "      <g transform=\"translate(615.14375 45.816964)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-35\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_25\">\n",
       "     <!-- csmar -->\n",
       "     <g transform=\"translate(633.104687 176.261875)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-63\" d=\"M 3122 3366 \n",
       "L 3122 2828 \n",
       "Q 2878 2963 2633 3030 \n",
       "Q 2388 3097 2138 3097 \n",
       "Q 1578 3097 1268 2742 \n",
       "Q 959 2388 959 1747 \n",
       "Q 959 1106 1268 751 \n",
       "Q 1578 397 2138 397 \n",
       "Q 2388 397 2633 464 \n",
       "Q 2878 531 3122 666 \n",
       "L 3122 134 \n",
       "Q 2881 22 2623 -34 \n",
       "Q 2366 -91 2075 -91 \n",
       "Q 1284 -91 818 406 \n",
       "Q 353 903 353 1747 \n",
       "Q 353 2603 823 3093 \n",
       "Q 1294 3584 2113 3584 \n",
       "Q 2378 3584 2631 3529 \n",
       "Q 2884 3475 3122 3366 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-73\" d=\"M 2834 3397 \n",
       "L 2834 2853 \n",
       "Q 2591 2978 2328 3040 \n",
       "Q 2066 3103 1784 3103 \n",
       "Q 1356 3103 1142 2972 \n",
       "Q 928 2841 928 2578 \n",
       "Q 928 2378 1081 2264 \n",
       "Q 1234 2150 1697 2047 \n",
       "L 1894 2003 \n",
       "Q 2506 1872 2764 1633 \n",
       "Q 3022 1394 3022 966 \n",
       "Q 3022 478 2636 193 \n",
       "Q 2250 -91 1575 -91 \n",
       "Q 1294 -91 989 -36 \n",
       "Q 684 19 347 128 \n",
       "L 347 722 \n",
       "Q 666 556 975 473 \n",
       "Q 1284 391 1588 391 \n",
       "Q 1994 391 2212 530 \n",
       "Q 2431 669 2431 922 \n",
       "Q 2431 1156 2273 1281 \n",
       "Q 2116 1406 1581 1522 \n",
       "L 1381 1569 \n",
       "Q 847 1681 609 1914 \n",
       "Q 372 2147 372 2553 \n",
       "Q 372 3047 722 3315 \n",
       "Q 1072 3584 1716 3584 \n",
       "Q 2034 3584 2315 3537 \n",
       "Q 2597 3491 2834 3397 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-61\" d=\"M 2194 1759 \n",
       "Q 1497 1759 1228 1600 \n",
       "Q 959 1441 959 1056 \n",
       "Q 959 750 1161 570 \n",
       "Q 1363 391 1709 391 \n",
       "Q 2188 391 2477 730 \n",
       "Q 2766 1069 2766 1631 \n",
       "L 2766 1759 \n",
       "L 2194 1759 \n",
       "z\n",
       "M 3341 1997 \n",
       "L 3341 0 \n",
       "L 2766 0 \n",
       "L 2766 531 \n",
       "Q 2569 213 2275 61 \n",
       "Q 1981 -91 1556 -91 \n",
       "Q 1019 -91 701 211 \n",
       "Q 384 513 384 1019 \n",
       "Q 384 1609 779 1909 \n",
       "Q 1175 2209 1959 2209 \n",
       "L 2766 2209 \n",
       "L 2766 2266 \n",
       "Q 2766 2663 2505 2880 \n",
       "Q 2244 3097 1772 3097 \n",
       "Q 1472 3097 1187 3025 \n",
       "Q 903 2953 641 2809 \n",
       "L 641 3341 \n",
       "Q 956 3463 1253 3523 \n",
       "Q 1550 3584 1831 3584 \n",
       "Q 2591 3584 2966 3190 \n",
       "Q 3341 2797 3341 1997 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_26\">\n",
       "     <!-- 1e9 -->\n",
       "     <g transform=\"translate(589.265625 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-39\" x=\"125.146484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_22\">\n",
       "    <path d=\"M 75.507386 171.000257 \n",
       "L 100.509876 286.918125 \n",
       "L 125.79017 243.985663 \n",
       "L 151.348271 197.613867 \n",
       "L 176.906371 148.016525 \n",
       "L 177.184176 148.016525 \n",
       "L 201.90886 273.683121 \n",
       "L 227.189155 225.918944 \n",
       "L 252.747255 172.721994 \n",
       "L 278.305355 122.041638 \n",
       "L 278.583161 122.041638 \n",
       "L 303.307844 263.359371 \n",
       "L 328.588139 204.640272 \n",
       "L 354.146239 147.641497 \n",
       "L 379.704339 89.983632 \n",
       "L 379.982145 89.983632 \n",
       "L 404.706829 258.899428 \n",
       "L 429.987123 192.086585 \n",
       "L 455.545224 126.575598 \n",
       "L 481.103324 60.728866 \n",
       "L 481.381129 60.728866 \n",
       "L 506.383619 263.373476 \n",
       "L 531.663913 182.750559 \n",
       "L 557.222013 110.520052 \n",
       "L 582.780114 34.918125 \n",
       "\" clip-path=\"url(#p710aa9c72b)\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_7\">\n",
       "    <path d=\"M 50.14375 299.518125 \n",
       "L 50.14375 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_8\">\n",
       "    <path d=\"M 608.14375 299.518125 \n",
       "L 608.14375 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_9\">\n",
       "    <path d=\"M 50.14375 299.518125 \n",
       "L 608.14375 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_10\">\n",
       "    <path d=\"M 50.14375 22.318125 \n",
       "L 608.14375 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"legend_1\">\n",
       "    <g id=\"patch_11\">\n",
       "     <path d=\"M 57.14375 59.674375 \n",
       "L 142.18125 59.674375 \n",
       "Q 144.18125 59.674375 144.18125 57.674375 \n",
       "L 144.18125 29.318125 \n",
       "Q 144.18125 27.318125 142.18125 27.318125 \n",
       "L 57.14375 27.318125 \n",
       "Q 55.14375 27.318125 55.14375 29.318125 \n",
       "L 55.14375 57.674375 \n",
       "Q 55.14375 59.674375 57.14375 59.674375 \n",
       "z\n",
       "\" style=\"fill: #ffffff; opacity: 0.8; stroke: #cccccc; stroke-linejoin: miter\"/>\n",
       "    </g>\n",
       "    <g id=\"line2d_23\">\n",
       "     <path d=\"M 59.14375 35.416562 \n",
       "L 69.14375 35.416562 \n",
       "L 79.14375 35.416562 \n",
       "\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_27\">\n",
       "     <!-- onlinedata -->\n",
       "     <g transform=\"translate(87.14375 38.916562)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-6f\" d=\"M 1959 3097 \n",
       "Q 1497 3097 1228 2736 \n",
       "Q 959 2375 959 1747 \n",
       "Q 959 1119 1226 758 \n",
       "Q 1494 397 1959 397 \n",
       "Q 2419 397 2687 759 \n",
       "Q 2956 1122 2956 1747 \n",
       "Q 2956 2369 2687 2733 \n",
       "Q 2419 3097 1959 3097 \n",
       "z\n",
       "M 1959 3584 \n",
       "Q 2709 3584 3137 3096 \n",
       "Q 3566 2609 3566 1747 \n",
       "Q 3566 888 3137 398 \n",
       "Q 2709 -91 1959 -91 \n",
       "Q 1206 -91 779 398 \n",
       "Q 353 888 353 1747 \n",
       "Q 353 2609 779 3096 \n",
       "Q 1206 3584 1959 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6c\" d=\"M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-64\" d=\"M 2906 2969 \n",
       "L 2906 4863 \n",
       "L 3481 4863 \n",
       "L 3481 0 \n",
       "L 2906 0 \n",
       "L 2906 525 \n",
       "Q 2725 213 2448 61 \n",
       "Q 2172 -91 1784 -91 \n",
       "Q 1150 -91 751 415 \n",
       "Q 353 922 353 1747 \n",
       "Q 353 2572 751 3078 \n",
       "Q 1150 3584 1784 3584 \n",
       "Q 2172 3584 2448 3432 \n",
       "Q 2725 3281 2906 2969 \n",
       "z\n",
       "M 947 1747 \n",
       "Q 947 1113 1208 752 \n",
       "Q 1469 391 1925 391 \n",
       "Q 2381 391 2643 752 \n",
       "Q 2906 1113 2906 1747 \n",
       "Q 2906 2381 2643 2742 \n",
       "Q 2381 3103 1925 3103 \n",
       "Q 1469 3103 1208 2742 \n",
       "Q 947 2381 947 1747 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-6f\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"61.181641\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6c\" x=\"124.560547\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"152.34375\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"180.126953\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"243.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.029297\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.785156\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"468.994141\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_24\">\n",
       "     <path d=\"M 59.14375 50.094688 \n",
       "L 69.14375 50.094688 \n",
       "L 79.14375 50.094688 \n",
       "\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_28\">\n",
       "     <!-- csmardata -->\n",
       "     <g transform=\"translate(87.14375 53.594688)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.134766\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.611328\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.890625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"469.099609\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       " </g>\n",
       " <defs>\n",
       "  <clipPath id=\"p710aa9c72b\">\n",
       "   <rect x=\"50.14375\" y=\"22.318125\" width=\"558\" height=\"277.2\"/>\n",
       "  </clipPath>\n",
       " </defs>\n",
       "</svg>\n"
      ],
      "text/plain": [
       "<Figure size 1000x500 with 2 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig = plt.figure(figsize=(10, 5))\n",
    "ax1 = fig.add_subplot(1, 1, 1)\n",
    "ax1.plot(Qdata2['中炬高新（600872.SH）'],color='red',label='onlinedata')\n",
    "ax1.set_xlabel('time')  # 设置横坐标标签\n",
    "ax1.set_ylabel('revenue')  # 设置左边纵坐标标签\n",
    "ax1.set_title(\"revenue\")  # 给整张图命名\n",
    "data_format = mdates.DateFormatter('%Y')\n",
    "ax1.xaxis.set_major_formatter(data_format)\n",
    "ax1.xaxis.set_major_locator(mdates.YearLocator())\n",
    "plt.xticks(rotation = 90)\n",
    "ax2 = ax1.twinx()  #twinx()函数表示共享x轴\n",
    "ax2.plot(finaldata['中炬高新'],color='blue',label='csmardata')\n",
    "ax2.set_ylabel('csmar')  # 设置右边纵坐标标签\n",
    "lines, labels = ax1.get_legend_handles_labels()\n",
    "lines2, labels2 = ax2.get_legend_handles_labels()\n",
    "ax2.legend(lines + lines2, labels + labels2, loc='upper left')\n",
    "fig = plt.gcf()\n",
    "fig.savefig('中炬高新.pdf', bbox_inches='tight')\n",
    "plt.show();"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
       "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"636.021875pt\" height=\"352.84625pt\" viewBox=\"0 0 636.021875 352.84625\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">\n",
       " <metadata>\n",
       "  <rdf:RDF xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n",
       "   <cc:Work>\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\n",
       "    <dc:date>2024-12-19T16:26:43.768048</dc:date>\n",
       "    <dc:format>image/svg+xml</dc:format>\n",
       "    <dc:creator>\n",
       "     <cc:Agent>\n",
       "      <dc:title>Matplotlib v3.5.2, https://matplotlib.org/</dc:title>\n",
       "     </cc:Agent>\n",
       "    </dc:creator>\n",
       "   </cc:Work>\n",
       "  </rdf:RDF>\n",
       " </metadata>\n",
       " <defs>\n",
       "  <style type=\"text/css\">*{stroke-linejoin: round; stroke-linecap: butt}</style>\n",
       " </defs>\n",
       " <g id=\"figure_1\">\n",
       "  <g id=\"patch_1\">\n",
       "   <path d=\"M 0 352.84625 \n",
       "L 636.021875 352.84625 \n",
       "L 636.021875 0 \n",
       "L 0 0 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "  </g>\n",
       "  <g id=\"axes_1\">\n",
       "   <g id=\"patch_2\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 601.78125 299.518125 \n",
       "L 601.78125 22.318125 \n",
       "L 43.78125 22.318125 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_1\">\n",
       "    <g id=\"xtick_1\">\n",
       "     <g id=\"line2d_1\">\n",
       "      <defs>\n",
       "       <path id=\"m35e4411a83\" d=\"M 0 0 \n",
       "L 0 3.5 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m35e4411a83\" x=\"69.144886\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_1\">\n",
       "      <!-- 2016 -->\n",
       "      <g transform=\"translate(71.904261 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-32\" d=\"M 1228 531 \n",
       "L 3431 531 \n",
       "L 3431 0 \n",
       "L 469 0 \n",
       "L 469 531 \n",
       "Q 828 903 1448 1529 \n",
       "Q 2069 2156 2228 2338 \n",
       "Q 2531 2678 2651 2914 \n",
       "Q 2772 3150 2772 3378 \n",
       "Q 2772 3750 2511 3984 \n",
       "Q 2250 4219 1831 4219 \n",
       "Q 1534 4219 1204 4116 \n",
       "Q 875 4013 500 3803 \n",
       "L 500 4441 \n",
       "Q 881 4594 1212 4672 \n",
       "Q 1544 4750 1819 4750 \n",
       "Q 2544 4750 2975 4387 \n",
       "Q 3406 4025 3406 3419 \n",
       "Q 3406 3131 3298 2873 \n",
       "Q 3191 2616 2906 2266 \n",
       "Q 2828 2175 2409 1742 \n",
       "Q 1991 1309 1228 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-30\" d=\"M 2034 4250 \n",
       "Q 1547 4250 1301 3770 \n",
       "Q 1056 3291 1056 2328 \n",
       "Q 1056 1369 1301 889 \n",
       "Q 1547 409 2034 409 \n",
       "Q 2525 409 2770 889 \n",
       "Q 3016 1369 3016 2328 \n",
       "Q 3016 3291 2770 3770 \n",
       "Q 2525 4250 2034 4250 \n",
       "z\n",
       "M 2034 4750 \n",
       "Q 2819 4750 3233 4129 \n",
       "Q 3647 3509 3647 2328 \n",
       "Q 3647 1150 3233 529 \n",
       "Q 2819 -91 2034 -91 \n",
       "Q 1250 -91 836 529 \n",
       "Q 422 1150 422 2328 \n",
       "Q 422 3509 836 4129 \n",
       "Q 1250 4750 2034 4750 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-31\" d=\"M 794 531 \n",
       "L 1825 531 \n",
       "L 1825 4091 \n",
       "L 703 3866 \n",
       "L 703 4441 \n",
       "L 1819 4666 \n",
       "L 2450 4666 \n",
       "L 2450 531 \n",
       "L 3481 531 \n",
       "L 3481 0 \n",
       "L 794 0 \n",
       "L 794 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-36\" d=\"M 2113 2584 \n",
       "Q 1688 2584 1439 2293 \n",
       "Q 1191 2003 1191 1497 \n",
       "Q 1191 994 1439 701 \n",
       "Q 1688 409 2113 409 \n",
       "Q 2538 409 2786 701 \n",
       "Q 3034 994 3034 1497 \n",
       "Q 3034 2003 2786 2293 \n",
       "Q 2538 2584 2113 2584 \n",
       "z\n",
       "M 3366 4563 \n",
       "L 3366 3988 \n",
       "Q 3128 4100 2886 4159 \n",
       "Q 2644 4219 2406 4219 \n",
       "Q 1781 4219 1451 3797 \n",
       "Q 1122 3375 1075 2522 \n",
       "Q 1259 2794 1537 2939 \n",
       "Q 1816 3084 2150 3084 \n",
       "Q 2853 3084 3261 2657 \n",
       "Q 3669 2231 3669 1497 \n",
       "Q 3669 778 3244 343 \n",
       "Q 2819 -91 2113 -91 \n",
       "Q 1303 -91 875 529 \n",
       "Q 447 1150 447 2328 \n",
       "Q 447 3434 972 4092 \n",
       "Q 1497 4750 2381 4750 \n",
       "Q 2619 4750 2861 4703 \n",
       "Q 3103 4656 3366 4563 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-36\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_2\">\n",
       "     <g id=\"line2d_2\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m35e4411a83\" x=\"170.821676\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_2\">\n",
       "      <!-- 2017 -->\n",
       "      <g transform=\"translate(173.581051 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-37\" d=\"M 525 4666 \n",
       "L 3525 4666 \n",
       "L 3525 4397 \n",
       "L 1831 0 \n",
       "L 1172 0 \n",
       "L 2766 4134 \n",
       "L 525 4134 \n",
       "L 525 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-37\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_3\">\n",
       "     <g id=\"line2d_3\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m35e4411a83\" x=\"272.220661\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_3\">\n",
       "      <!-- 2018 -->\n",
       "      <g transform=\"translate(274.980036 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-38\" d=\"M 2034 2216 \n",
       "Q 1584 2216 1326 1975 \n",
       "Q 1069 1734 1069 1313 \n",
       "Q 1069 891 1326 650 \n",
       "Q 1584 409 2034 409 \n",
       "Q 2484 409 2743 651 \n",
       "Q 3003 894 3003 1313 \n",
       "Q 3003 1734 2745 1975 \n",
       "Q 2488 2216 2034 2216 \n",
       "z\n",
       "M 1403 2484 \n",
       "Q 997 2584 770 2862 \n",
       "Q 544 3141 544 3541 \n",
       "Q 544 4100 942 4425 \n",
       "Q 1341 4750 2034 4750 \n",
       "Q 2731 4750 3128 4425 \n",
       "Q 3525 4100 3525 3541 \n",
       "Q 3525 3141 3298 2862 \n",
       "Q 3072 2584 2669 2484 \n",
       "Q 3125 2378 3379 2068 \n",
       "Q 3634 1759 3634 1313 \n",
       "Q 3634 634 3220 271 \n",
       "Q 2806 -91 2034 -91 \n",
       "Q 1263 -91 848 271 \n",
       "Q 434 634 434 1313 \n",
       "Q 434 1759 690 2068 \n",
       "Q 947 2378 1403 2484 \n",
       "z\n",
       "M 1172 3481 \n",
       "Q 1172 3119 1398 2916 \n",
       "Q 1625 2713 2034 2713 \n",
       "Q 2441 2713 2670 2916 \n",
       "Q 2900 3119 2900 3481 \n",
       "Q 2900 3844 2670 4047 \n",
       "Q 2441 4250 2034 4250 \n",
       "Q 1625 4250 1398 4047 \n",
       "Q 1172 3844 1172 3481 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-38\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_4\">\n",
       "     <g id=\"line2d_4\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m35e4411a83\" x=\"373.619645\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_4\">\n",
       "      <!-- 2019 -->\n",
       "      <g transform=\"translate(376.37902 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-39\" d=\"M 703 97 \n",
       "L 703 672 \n",
       "Q 941 559 1184 500 \n",
       "Q 1428 441 1663 441 \n",
       "Q 2288 441 2617 861 \n",
       "Q 2947 1281 2994 2138 \n",
       "Q 2813 1869 2534 1725 \n",
       "Q 2256 1581 1919 1581 \n",
       "Q 1219 1581 811 2004 \n",
       "Q 403 2428 403 3163 \n",
       "Q 403 3881 828 4315 \n",
       "Q 1253 4750 1959 4750 \n",
       "Q 2769 4750 3195 4129 \n",
       "Q 3622 3509 3622 2328 \n",
       "Q 3622 1225 3098 567 \n",
       "Q 2575 -91 1691 -91 \n",
       "Q 1453 -91 1209 -44 \n",
       "Q 966 3 703 97 \n",
       "z\n",
       "M 1959 2075 \n",
       "Q 2384 2075 2632 2365 \n",
       "Q 2881 2656 2881 3163 \n",
       "Q 2881 3666 2632 3958 \n",
       "Q 2384 4250 1959 4250 \n",
       "Q 1534 4250 1286 3958 \n",
       "Q 1038 3666 1038 3163 \n",
       "Q 1038 2656 1286 2365 \n",
       "Q 1534 2075 1959 2075 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-39\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_5\">\n",
       "     <g id=\"line2d_5\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m35e4411a83\" x=\"475.018629\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_5\">\n",
       "      <!-- 2020 -->\n",
       "      <g transform=\"translate(477.778004 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_6\">\n",
       "     <g id=\"line2d_6\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m35e4411a83\" x=\"576.695419\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_6\">\n",
       "      <!-- 2021 -->\n",
       "      <g transform=\"translate(579.454794 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_7\">\n",
       "     <!-- time -->\n",
       "     <g transform=\"translate(311.485156 343.566563)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-74\" d=\"M 1172 4494 \n",
       "L 1172 3500 \n",
       "L 2356 3500 \n",
       "L 2356 3053 \n",
       "L 1172 3053 \n",
       "L 1172 1153 \n",
       "Q 1172 725 1289 603 \n",
       "Q 1406 481 1766 481 \n",
       "L 2356 481 \n",
       "L 2356 0 \n",
       "L 1766 0 \n",
       "Q 1100 0 847 248 \n",
       "Q 594 497 594 1153 \n",
       "L 594 3053 \n",
       "L 172 3053 \n",
       "L 172 3500 \n",
       "L 594 3500 \n",
       "L 594 4494 \n",
       "L 1172 4494 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-69\" d=\"M 603 3500 \n",
       "L 1178 3500 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 3500 \n",
       "z\n",
       "M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 4134 \n",
       "L 603 4134 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6d\" d=\"M 3328 2828 \n",
       "Q 3544 3216 3844 3400 \n",
       "Q 4144 3584 4550 3584 \n",
       "Q 5097 3584 5394 3201 \n",
       "Q 5691 2819 5691 2113 \n",
       "L 5691 0 \n",
       "L 5113 0 \n",
       "L 5113 2094 \n",
       "Q 5113 2597 4934 2840 \n",
       "Q 4756 3084 4391 3084 \n",
       "Q 3944 3084 3684 2787 \n",
       "Q 3425 2491 3425 1978 \n",
       "L 3425 0 \n",
       "L 2847 0 \n",
       "L 2847 2094 \n",
       "Q 2847 2600 2669 2842 \n",
       "Q 2491 3084 2119 3084 \n",
       "Q 1678 3084 1418 2786 \n",
       "Q 1159 2488 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1356 3278 1631 3431 \n",
       "Q 1906 3584 2284 3584 \n",
       "Q 2666 3584 2933 3390 \n",
       "Q 3200 3197 3328 2828 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-65\" d=\"M 3597 1894 \n",
       "L 3597 1613 \n",
       "L 953 1613 \n",
       "Q 991 1019 1311 708 \n",
       "Q 1631 397 2203 397 \n",
       "Q 2534 397 2845 478 \n",
       "Q 3156 559 3463 722 \n",
       "L 3463 178 \n",
       "Q 3153 47 2828 -22 \n",
       "Q 2503 -91 2169 -91 \n",
       "Q 1331 -91 842 396 \n",
       "Q 353 884 353 1716 \n",
       "Q 353 2575 817 3079 \n",
       "Q 1281 3584 2069 3584 \n",
       "Q 2775 3584 3186 3129 \n",
       "Q 3597 2675 3597 1894 \n",
       "z\n",
       "M 3022 2063 \n",
       "Q 3016 2534 2758 2815 \n",
       "Q 2500 3097 2075 3097 \n",
       "Q 1594 3097 1305 2825 \n",
       "Q 1016 2553 972 2059 \n",
       "L 3022 2063 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-74\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"39.208984\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"66.992188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"164.404297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_2\">\n",
       "    <g id=\"ytick_1\">\n",
       "     <g id=\"line2d_7\">\n",
       "      <defs>\n",
       "       <path id=\"m22017fb493\" d=\"M 0 0 \n",
       "L -3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m22017fb493\" x=\"43.78125\" y=\"268.223065\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_8\">\n",
       "      <!-- 0.5 -->\n",
       "      <g transform=\"translate(20.878125 272.022283)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-2e\" d=\"M 684 794 \n",
       "L 1344 794 \n",
       "L 1344 0 \n",
       "L 684 0 \n",
       "L 684 794 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-35\" d=\"M 691 4666 \n",
       "L 3169 4666 \n",
       "L 3169 4134 \n",
       "L 1269 4134 \n",
       "L 1269 2991 \n",
       "Q 1406 3038 1543 3061 \n",
       "Q 1681 3084 1819 3084 \n",
       "Q 2600 3084 3056 2656 \n",
       "Q 3513 2228 3513 1497 \n",
       "Q 3513 744 3044 326 \n",
       "Q 2575 -91 1722 -91 \n",
       "Q 1428 -91 1123 -41 \n",
       "Q 819 9 494 109 \n",
       "L 494 744 \n",
       "Q 775 591 1075 516 \n",
       "Q 1375 441 1709 441 \n",
       "Q 2250 441 2565 725 \n",
       "Q 2881 1009 2881 1497 \n",
       "Q 2881 1984 2565 2268 \n",
       "Q 2250 2553 1709 2553 \n",
       "Q 1456 2553 1204 2497 \n",
       "Q 953 2441 691 2322 \n",
       "L 691 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_8\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m22017fb493\" x=\"43.78125\" y=\"210.350672\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_9\">\n",
       "      <!-- 1.0 -->\n",
       "      <g transform=\"translate(20.878125 214.149891)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_9\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m22017fb493\" x=\"43.78125\" y=\"152.47828\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_10\">\n",
       "      <!-- 1.5 -->\n",
       "      <g transform=\"translate(20.878125 156.277498)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_10\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m22017fb493\" x=\"43.78125\" y=\"94.605887\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_11\">\n",
       "      <!-- 2.0 -->\n",
       "      <g transform=\"translate(20.878125 98.405106)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_5\">\n",
       "     <g id=\"line2d_11\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m22017fb493\" x=\"43.78125\" y=\"36.733495\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_12\">\n",
       "      <!-- 2.5 -->\n",
       "      <g transform=\"translate(20.878125 40.532713)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_13\">\n",
       "     <!-- revenue -->\n",
       "     <g transform=\"translate(14.798438 181.387656)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-72\" d=\"M 2631 2963 \n",
       "Q 2534 3019 2420 3045 \n",
       "Q 2306 3072 2169 3072 \n",
       "Q 1681 3072 1420 2755 \n",
       "Q 1159 2438 1159 1844 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1341 3275 1631 3429 \n",
       "Q 1922 3584 2338 3584 \n",
       "Q 2397 3584 2469 3576 \n",
       "Q 2541 3569 2628 3553 \n",
       "L 2631 2963 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-76\" d=\"M 191 3500 \n",
       "L 800 3500 \n",
       "L 1894 563 \n",
       "L 2988 3500 \n",
       "L 3597 3500 \n",
       "L 2284 0 \n",
       "L 1503 0 \n",
       "L 191 3500 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6e\" d=\"M 3513 2113 \n",
       "L 3513 0 \n",
       "L 2938 0 \n",
       "L 2938 2094 \n",
       "Q 2938 2591 2744 2837 \n",
       "Q 2550 3084 2163 3084 \n",
       "Q 1697 3084 1428 2787 \n",
       "Q 1159 2491 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1366 3272 1645 3428 \n",
       "Q 1925 3584 2291 3584 \n",
       "Q 2894 3584 3203 3211 \n",
       "Q 3513 2838 3513 2113 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-75\" d=\"M 544 1381 \n",
       "L 544 3500 \n",
       "L 1119 3500 \n",
       "L 1119 1403 \n",
       "Q 1119 906 1312 657 \n",
       "Q 1506 409 1894 409 \n",
       "Q 2359 409 2629 706 \n",
       "Q 2900 1003 2900 1516 \n",
       "L 2900 3500 \n",
       "L 3475 3500 \n",
       "L 3475 0 \n",
       "L 2900 0 \n",
       "L 2900 538 \n",
       "Q 2691 219 2414 64 \n",
       "Q 2138 -91 1772 -91 \n",
       "Q 1169 -91 856 284 \n",
       "Q 544 659 544 1381 \n",
       "z\n",
       "M 1991 3584 \n",
       "L 1991 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_14\">\n",
       "     <!-- 1e8 -->\n",
       "     <g transform=\"translate(43.78125 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-38\" x=\"125.146484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_12\">\n",
       "    <path d=\"M 94.147376 286.918125 \n",
       "L 119.42767 274.880924 \n",
       "L 144.985771 280.710303 \n",
       "L 170.543871 281.326925 \n",
       "L 195.54636 267.305599 \n",
       "L 220.826655 228.567547 \n",
       "L 246.384755 246.043112 \n",
       "L 271.942855 196.675947 \n",
       "L 296.945344 218.680738 \n",
       "L 322.225639 175.212802 \n",
       "L 347.783739 179.523949 \n",
       "L 373.341839 98.234557 \n",
       "L 398.344329 163.367939 \n",
       "L 423.624623 105.870766 \n",
       "L 449.182724 152.704693 \n",
       "L 474.740824 63.178158 \n",
       "L 500.021119 105.91163 \n",
       "L 525.301413 34.918125 \n",
       "L 550.859513 252.149748 \n",
       "\" clip-path=\"url(#p6592305832)\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 43.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 601.78125 299.518125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_5\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 601.78125 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_6\">\n",
       "    <path d=\"M 43.78125 22.318125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_15\">\n",
       "    <!-- revenue -->\n",
       "    <g transform=\"translate(298.217812 16.318125)scale(0.12 -0.12)\">\n",
       "     <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       "  <g id=\"axes_2\">\n",
       "   <g id=\"matplotlib.axis_3\">\n",
       "    <g id=\"ytick_6\">\n",
       "     <g id=\"line2d_13\">\n",
       "      <defs>\n",
       "       <path id=\"mf0d9d89605\" d=\"M 0 0 \n",
       "L 3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf0d9d89605\" x=\"601.78125\" y=\"281.642358\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_16\">\n",
       "      <!-- 1 -->\n",
       "      <g transform=\"translate(608.78125 285.441577)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_7\">\n",
       "     <g id=\"line2d_14\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf0d9d89605\" x=\"601.78125\" y=\"245.484491\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_17\">\n",
       "      <!-- 2 -->\n",
       "      <g transform=\"translate(608.78125 249.28371)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_8\">\n",
       "     <g id=\"line2d_15\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf0d9d89605\" x=\"601.78125\" y=\"209.326624\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_18\">\n",
       "      <!-- 3 -->\n",
       "      <g transform=\"translate(608.78125 213.125843)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-33\" d=\"M 2597 2516 \n",
       "Q 3050 2419 3304 2112 \n",
       "Q 3559 1806 3559 1356 \n",
       "Q 3559 666 3084 287 \n",
       "Q 2609 -91 1734 -91 \n",
       "Q 1441 -91 1130 -33 \n",
       "Q 819 25 488 141 \n",
       "L 488 750 \n",
       "Q 750 597 1062 519 \n",
       "Q 1375 441 1716 441 \n",
       "Q 2309 441 2620 675 \n",
       "Q 2931 909 2931 1356 \n",
       "Q 2931 1769 2642 2001 \n",
       "Q 2353 2234 1838 2234 \n",
       "L 1294 2234 \n",
       "L 1294 2753 \n",
       "L 1863 2753 \n",
       "Q 2328 2753 2575 2939 \n",
       "Q 2822 3125 2822 3475 \n",
       "Q 2822 3834 2567 4026 \n",
       "Q 2313 4219 1838 4219 \n",
       "Q 1578 4219 1281 4162 \n",
       "Q 984 4106 628 3988 \n",
       "L 628 4550 \n",
       "Q 988 4650 1302 4700 \n",
       "Q 1616 4750 1894 4750 \n",
       "Q 2613 4750 3031 4423 \n",
       "Q 3450 4097 3450 3541 \n",
       "Q 3450 3153 3228 2886 \n",
       "Q 3006 2619 2597 2516 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_9\">\n",
       "     <g id=\"line2d_16\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf0d9d89605\" x=\"601.78125\" y=\"173.168757\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_19\">\n",
       "      <!-- 4 -->\n",
       "      <g transform=\"translate(608.78125 176.967976)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-34\" d=\"M 2419 4116 \n",
       "L 825 1625 \n",
       "L 2419 1625 \n",
       "L 2419 4116 \n",
       "z\n",
       "M 2253 4666 \n",
       "L 3047 4666 \n",
       "L 3047 1625 \n",
       "L 3713 1625 \n",
       "L 3713 1100 \n",
       "L 3047 1100 \n",
       "L 3047 0 \n",
       "L 2419 0 \n",
       "L 2419 1100 \n",
       "L 313 1100 \n",
       "L 313 1709 \n",
       "L 2253 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-34\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_10\">\n",
       "     <g id=\"line2d_17\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf0d9d89605\" x=\"601.78125\" y=\"137.01089\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_20\">\n",
       "      <!-- 5 -->\n",
       "      <g transform=\"translate(608.78125 140.810109)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-35\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_11\">\n",
       "     <g id=\"line2d_18\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf0d9d89605\" x=\"601.78125\" y=\"100.853023\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_21\">\n",
       "      <!-- 6 -->\n",
       "      <g transform=\"translate(608.78125 104.652242)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-36\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_12\">\n",
       "     <g id=\"line2d_19\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf0d9d89605\" x=\"601.78125\" y=\"64.695156\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_22\">\n",
       "      <!-- 7 -->\n",
       "      <g transform=\"translate(608.78125 68.494375)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-37\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_13\">\n",
       "     <g id=\"line2d_20\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mf0d9d89605\" x=\"601.78125\" y=\"28.537289\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_23\">\n",
       "      <!-- 8 -->\n",
       "      <g transform=\"translate(608.78125 32.336508)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-38\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_24\">\n",
       "     <!-- csmar -->\n",
       "     <g transform=\"translate(626.742188 176.261875)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-63\" d=\"M 3122 3366 \n",
       "L 3122 2828 \n",
       "Q 2878 2963 2633 3030 \n",
       "Q 2388 3097 2138 3097 \n",
       "Q 1578 3097 1268 2742 \n",
       "Q 959 2388 959 1747 \n",
       "Q 959 1106 1268 751 \n",
       "Q 1578 397 2138 397 \n",
       "Q 2388 397 2633 464 \n",
       "Q 2878 531 3122 666 \n",
       "L 3122 134 \n",
       "Q 2881 22 2623 -34 \n",
       "Q 2366 -91 2075 -91 \n",
       "Q 1284 -91 818 406 \n",
       "Q 353 903 353 1747 \n",
       "Q 353 2603 823 3093 \n",
       "Q 1294 3584 2113 3584 \n",
       "Q 2378 3584 2631 3529 \n",
       "Q 2884 3475 3122 3366 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-73\" d=\"M 2834 3397 \n",
       "L 2834 2853 \n",
       "Q 2591 2978 2328 3040 \n",
       "Q 2066 3103 1784 3103 \n",
       "Q 1356 3103 1142 2972 \n",
       "Q 928 2841 928 2578 \n",
       "Q 928 2378 1081 2264 \n",
       "Q 1234 2150 1697 2047 \n",
       "L 1894 2003 \n",
       "Q 2506 1872 2764 1633 \n",
       "Q 3022 1394 3022 966 \n",
       "Q 3022 478 2636 193 \n",
       "Q 2250 -91 1575 -91 \n",
       "Q 1294 -91 989 -36 \n",
       "Q 684 19 347 128 \n",
       "L 347 722 \n",
       "Q 666 556 975 473 \n",
       "Q 1284 391 1588 391 \n",
       "Q 1994 391 2212 530 \n",
       "Q 2431 669 2431 922 \n",
       "Q 2431 1156 2273 1281 \n",
       "Q 2116 1406 1581 1522 \n",
       "L 1381 1569 \n",
       "Q 847 1681 609 1914 \n",
       "Q 372 2147 372 2553 \n",
       "Q 372 3047 722 3315 \n",
       "Q 1072 3584 1716 3584 \n",
       "Q 2034 3584 2315 3537 \n",
       "Q 2597 3491 2834 3397 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-61\" d=\"M 2194 1759 \n",
       "Q 1497 1759 1228 1600 \n",
       "Q 959 1441 959 1056 \n",
       "Q 959 750 1161 570 \n",
       "Q 1363 391 1709 391 \n",
       "Q 2188 391 2477 730 \n",
       "Q 2766 1069 2766 1631 \n",
       "L 2766 1759 \n",
       "L 2194 1759 \n",
       "z\n",
       "M 3341 1997 \n",
       "L 3341 0 \n",
       "L 2766 0 \n",
       "L 2766 531 \n",
       "Q 2569 213 2275 61 \n",
       "Q 1981 -91 1556 -91 \n",
       "Q 1019 -91 701 211 \n",
       "Q 384 513 384 1019 \n",
       "Q 384 1609 779 1909 \n",
       "Q 1175 2209 1959 2209 \n",
       "L 2766 2209 \n",
       "L 2766 2266 \n",
       "Q 2766 2663 2505 2880 \n",
       "Q 2244 3097 1772 3097 \n",
       "Q 1472 3097 1187 3025 \n",
       "Q 903 2953 641 2809 \n",
       "L 641 3341 \n",
       "Q 956 3463 1253 3523 \n",
       "Q 1550 3584 1831 3584 \n",
       "Q 2591 3584 2966 3190 \n",
       "Q 3341 2797 3341 1997 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_25\">\n",
       "     <!-- 1e9 -->\n",
       "     <g transform=\"translate(582.903125 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-39\" x=\"125.146484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_21\">\n",
       "    <path d=\"M 69.144886 210.809942 \n",
       "L 94.147376 286.918125 \n",
       "L 119.42767 253.744659 \n",
       "L 144.985771 218.692991 \n",
       "L 170.543871 180.062288 \n",
       "L 170.821676 180.062288 \n",
       "L 195.54636 280.476386 \n",
       "L 220.826655 241.029248 \n",
       "L 246.384755 196.594217 \n",
       "L 271.942855 150.087397 \n",
       "L 272.220661 150.087397 \n",
       "L 296.945344 273.514399 \n",
       "L 322.225639 224.293736 \n",
       "L 347.783739 170.240557 \n",
       "L 373.341839 112.47714 \n",
       "L 373.619645 112.47714 \n",
       "L 398.344329 262.098409 \n",
       "L 423.624623 203.093404 \n",
       "L 449.182724 143.523652 \n",
       "L 474.740824 77.895874 \n",
       "L 475.018629 77.895874 \n",
       "L 500.021119 257.383717 \n",
       "L 525.301413 187.046096 \n",
       "L 550.859513 116.931858 \n",
       "L 576.417614 34.918125 \n",
       "\" clip-path=\"url(#p6592305832)\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_7\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 43.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_8\">\n",
       "    <path d=\"M 601.78125 299.518125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_9\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 601.78125 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_10\">\n",
       "    <path d=\"M 43.78125 22.318125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"legend_1\">\n",
       "    <g id=\"patch_11\">\n",
       "     <path d=\"M 50.78125 59.674375 \n",
       "L 135.81875 59.674375 \n",
       "Q 137.81875 59.674375 137.81875 57.674375 \n",
       "L 137.81875 29.318125 \n",
       "Q 137.81875 27.318125 135.81875 27.318125 \n",
       "L 50.78125 27.318125 \n",
       "Q 48.78125 27.318125 48.78125 29.318125 \n",
       "L 48.78125 57.674375 \n",
       "Q 48.78125 59.674375 50.78125 59.674375 \n",
       "z\n",
       "\" style=\"fill: #ffffff; opacity: 0.8; stroke: #cccccc; stroke-linejoin: miter\"/>\n",
       "    </g>\n",
       "    <g id=\"line2d_22\">\n",
       "     <path d=\"M 52.78125 35.416562 \n",
       "L 62.78125 35.416562 \n",
       "L 72.78125 35.416562 \n",
       "\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_26\">\n",
       "     <!-- onlinedata -->\n",
       "     <g transform=\"translate(80.78125 38.916562)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-6f\" d=\"M 1959 3097 \n",
       "Q 1497 3097 1228 2736 \n",
       "Q 959 2375 959 1747 \n",
       "Q 959 1119 1226 758 \n",
       "Q 1494 397 1959 397 \n",
       "Q 2419 397 2687 759 \n",
       "Q 2956 1122 2956 1747 \n",
       "Q 2956 2369 2687 2733 \n",
       "Q 2419 3097 1959 3097 \n",
       "z\n",
       "M 1959 3584 \n",
       "Q 2709 3584 3137 3096 \n",
       "Q 3566 2609 3566 1747 \n",
       "Q 3566 888 3137 398 \n",
       "Q 2709 -91 1959 -91 \n",
       "Q 1206 -91 779 398 \n",
       "Q 353 888 353 1747 \n",
       "Q 353 2609 779 3096 \n",
       "Q 1206 3584 1959 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6c\" d=\"M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-64\" d=\"M 2906 2969 \n",
       "L 2906 4863 \n",
       "L 3481 4863 \n",
       "L 3481 0 \n",
       "L 2906 0 \n",
       "L 2906 525 \n",
       "Q 2725 213 2448 61 \n",
       "Q 2172 -91 1784 -91 \n",
       "Q 1150 -91 751 415 \n",
       "Q 353 922 353 1747 \n",
       "Q 353 2572 751 3078 \n",
       "Q 1150 3584 1784 3584 \n",
       "Q 2172 3584 2448 3432 \n",
       "Q 2725 3281 2906 2969 \n",
       "z\n",
       "M 947 1747 \n",
       "Q 947 1113 1208 752 \n",
       "Q 1469 391 1925 391 \n",
       "Q 2381 391 2643 752 \n",
       "Q 2906 1113 2906 1747 \n",
       "Q 2906 2381 2643 2742 \n",
       "Q 2381 3103 1925 3103 \n",
       "Q 1469 3103 1208 2742 \n",
       "Q 947 2381 947 1747 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-6f\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"61.181641\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6c\" x=\"124.560547\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"152.34375\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"180.126953\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"243.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.029297\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.785156\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"468.994141\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_23\">\n",
       "     <path d=\"M 52.78125 50.094688 \n",
       "L 62.78125 50.094688 \n",
       "L 72.78125 50.094688 \n",
       "\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_27\">\n",
       "     <!-- csmardata -->\n",
       "     <g transform=\"translate(80.78125 53.594688)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.134766\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.611328\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.890625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"469.099609\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       " </g>\n",
       " <defs>\n",
       "  <clipPath id=\"p6592305832\">\n",
       "   <rect x=\"43.78125\" y=\"22.318125\" width=\"558\" height=\"277.2\"/>\n",
       "  </clipPath>\n",
       " </defs>\n",
       "</svg>\n"
      ],
      "text/plain": [
       "<Figure size 1000x500 with 2 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig = plt.figure(figsize=(10, 5))\n",
    "ax1 = fig.add_subplot(1, 1, 1)\n",
    "ax1.plot(Qdata2['中顺洁柔（002511.SZ）'],color='red',label='onlinedata')\n",
    "ax1.set_xlabel('time')  # 设置横坐标标签\n",
    "ax1.set_ylabel('revenue')  # 设置左边纵坐标标签\n",
    "ax1.set_title(\"revenue\")  # 给整张图命名\n",
    "data_format = mdates.DateFormatter('%Y')\n",
    "ax1.xaxis.set_major_formatter(data_format)\n",
    "ax1.xaxis.set_major_locator(mdates.YearLocator())\n",
    "plt.xticks(rotation = 90)\n",
    "ax2 = ax1.twinx()  #twinx()函数表示共享x轴\n",
    "ax2.plot(finaldata['中顺洁柔'],color='blue',label='csmardata')\n",
    "ax2.set_ylabel('csmar')  # 设置右边纵坐标标签\n",
    "lines, labels = ax1.get_legend_handles_labels()\n",
    "lines2, labels2 = ax2.get_legend_handles_labels()\n",
    "ax2.legend(lines + lines2, labels + labels2, loc='upper left')\n",
    "fig = plt.gcf()\n",
    "fig.savefig('中顺洁柔.pdf', bbox_inches='tight')\n",
    "plt.show();"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
       "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"636.021875pt\" height=\"352.84625pt\" viewBox=\"0 0 636.021875 352.84625\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">\n",
       " <metadata>\n",
       "  <rdf:RDF xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n",
       "   <cc:Work>\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\n",
       "    <dc:date>2024-12-19T16:27:21.931497</dc:date>\n",
       "    <dc:format>image/svg+xml</dc:format>\n",
       "    <dc:creator>\n",
       "     <cc:Agent>\n",
       "      <dc:title>Matplotlib v3.5.2, https://matplotlib.org/</dc:title>\n",
       "     </cc:Agent>\n",
       "    </dc:creator>\n",
       "   </cc:Work>\n",
       "  </rdf:RDF>\n",
       " </metadata>\n",
       " <defs>\n",
       "  <style type=\"text/css\">*{stroke-linejoin: round; stroke-linecap: butt}</style>\n",
       " </defs>\n",
       " <g id=\"figure_1\">\n",
       "  <g id=\"patch_1\">\n",
       "   <path d=\"M 0 352.84625 \n",
       "L 636.021875 352.84625 \n",
       "L 636.021875 0 \n",
       "L 0 0 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "  </g>\n",
       "  <g id=\"axes_1\">\n",
       "   <g id=\"patch_2\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 592.240625 299.518125 \n",
       "L 592.240625 22.318125 \n",
       "L 34.240625 22.318125 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_1\">\n",
       "    <g id=\"xtick_1\">\n",
       "     <g id=\"line2d_1\">\n",
       "      <defs>\n",
       "       <path id=\"m414ce7503c\" d=\"M 0 0 \n",
       "L 0 3.5 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m414ce7503c\" x=\"59.604261\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_1\">\n",
       "      <!-- 2016 -->\n",
       "      <g transform=\"translate(62.363636 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-32\" d=\"M 1228 531 \n",
       "L 3431 531 \n",
       "L 3431 0 \n",
       "L 469 0 \n",
       "L 469 531 \n",
       "Q 828 903 1448 1529 \n",
       "Q 2069 2156 2228 2338 \n",
       "Q 2531 2678 2651 2914 \n",
       "Q 2772 3150 2772 3378 \n",
       "Q 2772 3750 2511 3984 \n",
       "Q 2250 4219 1831 4219 \n",
       "Q 1534 4219 1204 4116 \n",
       "Q 875 4013 500 3803 \n",
       "L 500 4441 \n",
       "Q 881 4594 1212 4672 \n",
       "Q 1544 4750 1819 4750 \n",
       "Q 2544 4750 2975 4387 \n",
       "Q 3406 4025 3406 3419 \n",
       "Q 3406 3131 3298 2873 \n",
       "Q 3191 2616 2906 2266 \n",
       "Q 2828 2175 2409 1742 \n",
       "Q 1991 1309 1228 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-30\" d=\"M 2034 4250 \n",
       "Q 1547 4250 1301 3770 \n",
       "Q 1056 3291 1056 2328 \n",
       "Q 1056 1369 1301 889 \n",
       "Q 1547 409 2034 409 \n",
       "Q 2525 409 2770 889 \n",
       "Q 3016 1369 3016 2328 \n",
       "Q 3016 3291 2770 3770 \n",
       "Q 2525 4250 2034 4250 \n",
       "z\n",
       "M 2034 4750 \n",
       "Q 2819 4750 3233 4129 \n",
       "Q 3647 3509 3647 2328 \n",
       "Q 3647 1150 3233 529 \n",
       "Q 2819 -91 2034 -91 \n",
       "Q 1250 -91 836 529 \n",
       "Q 422 1150 422 2328 \n",
       "Q 422 3509 836 4129 \n",
       "Q 1250 4750 2034 4750 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-31\" d=\"M 794 531 \n",
       "L 1825 531 \n",
       "L 1825 4091 \n",
       "L 703 3866 \n",
       "L 703 4441 \n",
       "L 1819 4666 \n",
       "L 2450 4666 \n",
       "L 2450 531 \n",
       "L 3481 531 \n",
       "L 3481 0 \n",
       "L 794 0 \n",
       "L 794 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-36\" d=\"M 2113 2584 \n",
       "Q 1688 2584 1439 2293 \n",
       "Q 1191 2003 1191 1497 \n",
       "Q 1191 994 1439 701 \n",
       "Q 1688 409 2113 409 \n",
       "Q 2538 409 2786 701 \n",
       "Q 3034 994 3034 1497 \n",
       "Q 3034 2003 2786 2293 \n",
       "Q 2538 2584 2113 2584 \n",
       "z\n",
       "M 3366 4563 \n",
       "L 3366 3988 \n",
       "Q 3128 4100 2886 4159 \n",
       "Q 2644 4219 2406 4219 \n",
       "Q 1781 4219 1451 3797 \n",
       "Q 1122 3375 1075 2522 \n",
       "Q 1259 2794 1537 2939 \n",
       "Q 1816 3084 2150 3084 \n",
       "Q 2853 3084 3261 2657 \n",
       "Q 3669 2231 3669 1497 \n",
       "Q 3669 778 3244 343 \n",
       "Q 2819 -91 2113 -91 \n",
       "Q 1303 -91 875 529 \n",
       "Q 447 1150 447 2328 \n",
       "Q 447 3434 972 4092 \n",
       "Q 1497 4750 2381 4750 \n",
       "Q 2619 4750 2861 4703 \n",
       "Q 3103 4656 3366 4563 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-36\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_2\">\n",
       "     <g id=\"line2d_2\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m414ce7503c\" x=\"161.281051\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_2\">\n",
       "      <!-- 2017 -->\n",
       "      <g transform=\"translate(164.040426 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-37\" d=\"M 525 4666 \n",
       "L 3525 4666 \n",
       "L 3525 4397 \n",
       "L 1831 0 \n",
       "L 1172 0 \n",
       "L 2766 4134 \n",
       "L 525 4134 \n",
       "L 525 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-37\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_3\">\n",
       "     <g id=\"line2d_3\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m414ce7503c\" x=\"262.680036\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_3\">\n",
       "      <!-- 2018 -->\n",
       "      <g transform=\"translate(265.439411 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-38\" d=\"M 2034 2216 \n",
       "Q 1584 2216 1326 1975 \n",
       "Q 1069 1734 1069 1313 \n",
       "Q 1069 891 1326 650 \n",
       "Q 1584 409 2034 409 \n",
       "Q 2484 409 2743 651 \n",
       "Q 3003 894 3003 1313 \n",
       "Q 3003 1734 2745 1975 \n",
       "Q 2488 2216 2034 2216 \n",
       "z\n",
       "M 1403 2484 \n",
       "Q 997 2584 770 2862 \n",
       "Q 544 3141 544 3541 \n",
       "Q 544 4100 942 4425 \n",
       "Q 1341 4750 2034 4750 \n",
       "Q 2731 4750 3128 4425 \n",
       "Q 3525 4100 3525 3541 \n",
       "Q 3525 3141 3298 2862 \n",
       "Q 3072 2584 2669 2484 \n",
       "Q 3125 2378 3379 2068 \n",
       "Q 3634 1759 3634 1313 \n",
       "Q 3634 634 3220 271 \n",
       "Q 2806 -91 2034 -91 \n",
       "Q 1263 -91 848 271 \n",
       "Q 434 634 434 1313 \n",
       "Q 434 1759 690 2068 \n",
       "Q 947 2378 1403 2484 \n",
       "z\n",
       "M 1172 3481 \n",
       "Q 1172 3119 1398 2916 \n",
       "Q 1625 2713 2034 2713 \n",
       "Q 2441 2713 2670 2916 \n",
       "Q 2900 3119 2900 3481 \n",
       "Q 2900 3844 2670 4047 \n",
       "Q 2441 4250 2034 4250 \n",
       "Q 1625 4250 1398 4047 \n",
       "Q 1172 3844 1172 3481 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-38\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_4\">\n",
       "     <g id=\"line2d_4\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m414ce7503c\" x=\"364.07902\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_4\">\n",
       "      <!-- 2019 -->\n",
       "      <g transform=\"translate(366.838395 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-39\" d=\"M 703 97 \n",
       "L 703 672 \n",
       "Q 941 559 1184 500 \n",
       "Q 1428 441 1663 441 \n",
       "Q 2288 441 2617 861 \n",
       "Q 2947 1281 2994 2138 \n",
       "Q 2813 1869 2534 1725 \n",
       "Q 2256 1581 1919 1581 \n",
       "Q 1219 1581 811 2004 \n",
       "Q 403 2428 403 3163 \n",
       "Q 403 3881 828 4315 \n",
       "Q 1253 4750 1959 4750 \n",
       "Q 2769 4750 3195 4129 \n",
       "Q 3622 3509 3622 2328 \n",
       "Q 3622 1225 3098 567 \n",
       "Q 2575 -91 1691 -91 \n",
       "Q 1453 -91 1209 -44 \n",
       "Q 966 3 703 97 \n",
       "z\n",
       "M 1959 2075 \n",
       "Q 2384 2075 2632 2365 \n",
       "Q 2881 2656 2881 3163 \n",
       "Q 2881 3666 2632 3958 \n",
       "Q 2384 4250 1959 4250 \n",
       "Q 1534 4250 1286 3958 \n",
       "Q 1038 3666 1038 3163 \n",
       "Q 1038 2656 1286 2365 \n",
       "Q 1534 2075 1959 2075 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-39\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_5\">\n",
       "     <g id=\"line2d_5\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m414ce7503c\" x=\"465.478004\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_5\">\n",
       "      <!-- 2020 -->\n",
       "      <g transform=\"translate(468.237379 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_6\">\n",
       "     <g id=\"line2d_6\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m414ce7503c\" x=\"567.154794\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_6\">\n",
       "      <!-- 2021 -->\n",
       "      <g transform=\"translate(569.914169 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_7\">\n",
       "     <!-- time -->\n",
       "     <g transform=\"translate(301.944531 343.566563)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-74\" d=\"M 1172 4494 \n",
       "L 1172 3500 \n",
       "L 2356 3500 \n",
       "L 2356 3053 \n",
       "L 1172 3053 \n",
       "L 1172 1153 \n",
       "Q 1172 725 1289 603 \n",
       "Q 1406 481 1766 481 \n",
       "L 2356 481 \n",
       "L 2356 0 \n",
       "L 1766 0 \n",
       "Q 1100 0 847 248 \n",
       "Q 594 497 594 1153 \n",
       "L 594 3053 \n",
       "L 172 3053 \n",
       "L 172 3500 \n",
       "L 594 3500 \n",
       "L 594 4494 \n",
       "L 1172 4494 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-69\" d=\"M 603 3500 \n",
       "L 1178 3500 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 3500 \n",
       "z\n",
       "M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 4134 \n",
       "L 603 4134 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6d\" d=\"M 3328 2828 \n",
       "Q 3544 3216 3844 3400 \n",
       "Q 4144 3584 4550 3584 \n",
       "Q 5097 3584 5394 3201 \n",
       "Q 5691 2819 5691 2113 \n",
       "L 5691 0 \n",
       "L 5113 0 \n",
       "L 5113 2094 \n",
       "Q 5113 2597 4934 2840 \n",
       "Q 4756 3084 4391 3084 \n",
       "Q 3944 3084 3684 2787 \n",
       "Q 3425 2491 3425 1978 \n",
       "L 3425 0 \n",
       "L 2847 0 \n",
       "L 2847 2094 \n",
       "Q 2847 2600 2669 2842 \n",
       "Q 2491 3084 2119 3084 \n",
       "Q 1678 3084 1418 2786 \n",
       "Q 1159 2488 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1356 3278 1631 3431 \n",
       "Q 1906 3584 2284 3584 \n",
       "Q 2666 3584 2933 3390 \n",
       "Q 3200 3197 3328 2828 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-65\" d=\"M 3597 1894 \n",
       "L 3597 1613 \n",
       "L 953 1613 \n",
       "Q 991 1019 1311 708 \n",
       "Q 1631 397 2203 397 \n",
       "Q 2534 397 2845 478 \n",
       "Q 3156 559 3463 722 \n",
       "L 3463 178 \n",
       "Q 3153 47 2828 -22 \n",
       "Q 2503 -91 2169 -91 \n",
       "Q 1331 -91 842 396 \n",
       "Q 353 884 353 1716 \n",
       "Q 353 2575 817 3079 \n",
       "Q 1281 3584 2069 3584 \n",
       "Q 2775 3584 3186 3129 \n",
       "Q 3597 2675 3597 1894 \n",
       "z\n",
       "M 3022 2063 \n",
       "Q 3016 2534 2758 2815 \n",
       "Q 2500 3097 2075 3097 \n",
       "Q 1594 3097 1305 2825 \n",
       "Q 1016 2553 972 2059 \n",
       "L 3022 2063 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-74\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"39.208984\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"66.992188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"164.404297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_2\">\n",
       "    <g id=\"ytick_1\">\n",
       "     <g id=\"line2d_7\">\n",
       "      <defs>\n",
       "       <path id=\"m5ed2c2cb81\" d=\"M 0 0 \n",
       "L -3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m5ed2c2cb81\" x=\"34.240625\" y=\"266.753037\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_8\">\n",
       "      <!-- 1 -->\n",
       "      <g transform=\"translate(20.878125 270.552255)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_8\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m5ed2c2cb81\" x=\"34.240625\" y=\"214.986197\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_9\">\n",
       "      <!-- 2 -->\n",
       "      <g transform=\"translate(20.878125 218.785416)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_9\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m5ed2c2cb81\" x=\"34.240625\" y=\"163.219357\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_10\">\n",
       "      <!-- 3 -->\n",
       "      <g transform=\"translate(20.878125 167.018576)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-33\" d=\"M 2597 2516 \n",
       "Q 3050 2419 3304 2112 \n",
       "Q 3559 1806 3559 1356 \n",
       "Q 3559 666 3084 287 \n",
       "Q 2609 -91 1734 -91 \n",
       "Q 1441 -91 1130 -33 \n",
       "Q 819 25 488 141 \n",
       "L 488 750 \n",
       "Q 750 597 1062 519 \n",
       "Q 1375 441 1716 441 \n",
       "Q 2309 441 2620 675 \n",
       "Q 2931 909 2931 1356 \n",
       "Q 2931 1769 2642 2001 \n",
       "Q 2353 2234 1838 2234 \n",
       "L 1294 2234 \n",
       "L 1294 2753 \n",
       "L 1863 2753 \n",
       "Q 2328 2753 2575 2939 \n",
       "Q 2822 3125 2822 3475 \n",
       "Q 2822 3834 2567 4026 \n",
       "Q 2313 4219 1838 4219 \n",
       "Q 1578 4219 1281 4162 \n",
       "Q 984 4106 628 3988 \n",
       "L 628 4550 \n",
       "Q 988 4650 1302 4700 \n",
       "Q 1616 4750 1894 4750 \n",
       "Q 2613 4750 3031 4423 \n",
       "Q 3450 4097 3450 3541 \n",
       "Q 3450 3153 3228 2886 \n",
       "Q 3006 2619 2597 2516 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_10\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m5ed2c2cb81\" x=\"34.240625\" y=\"111.452518\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_11\">\n",
       "      <!-- 4 -->\n",
       "      <g transform=\"translate(20.878125 115.251737)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-34\" d=\"M 2419 4116 \n",
       "L 825 1625 \n",
       "L 2419 1625 \n",
       "L 2419 4116 \n",
       "z\n",
       "M 2253 4666 \n",
       "L 3047 4666 \n",
       "L 3047 1625 \n",
       "L 3713 1625 \n",
       "L 3713 1100 \n",
       "L 3047 1100 \n",
       "L 3047 0 \n",
       "L 2419 0 \n",
       "L 2419 1100 \n",
       "L 313 1100 \n",
       "L 313 1709 \n",
       "L 2253 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-34\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_5\">\n",
       "     <g id=\"line2d_11\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m5ed2c2cb81\" x=\"34.240625\" y=\"59.685678\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_12\">\n",
       "      <!-- 5 -->\n",
       "      <g transform=\"translate(20.878125 63.484897)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-35\" d=\"M 691 4666 \n",
       "L 3169 4666 \n",
       "L 3169 4134 \n",
       "L 1269 4134 \n",
       "L 1269 2991 \n",
       "Q 1406 3038 1543 3061 \n",
       "Q 1681 3084 1819 3084 \n",
       "Q 2600 3084 3056 2656 \n",
       "Q 3513 2228 3513 1497 \n",
       "Q 3513 744 3044 326 \n",
       "Q 2575 -91 1722 -91 \n",
       "Q 1428 -91 1123 -41 \n",
       "Q 819 9 494 109 \n",
       "L 494 744 \n",
       "Q 775 591 1075 516 \n",
       "Q 1375 441 1709 441 \n",
       "Q 2250 441 2565 725 \n",
       "Q 2881 1009 2881 1497 \n",
       "Q 2881 1984 2565 2268 \n",
       "Q 2250 2553 1709 2553 \n",
       "Q 1456 2553 1204 2497 \n",
       "Q 953 2441 691 2322 \n",
       "L 691 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-35\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_13\">\n",
       "     <!-- revenue -->\n",
       "     <g transform=\"translate(14.798437 181.387656)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-72\" d=\"M 2631 2963 \n",
       "Q 2534 3019 2420 3045 \n",
       "Q 2306 3072 2169 3072 \n",
       "Q 1681 3072 1420 2755 \n",
       "Q 1159 2438 1159 1844 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1341 3275 1631 3429 \n",
       "Q 1922 3584 2338 3584 \n",
       "Q 2397 3584 2469 3576 \n",
       "Q 2541 3569 2628 3553 \n",
       "L 2631 2963 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-76\" d=\"M 191 3500 \n",
       "L 800 3500 \n",
       "L 1894 563 \n",
       "L 2988 3500 \n",
       "L 3597 3500 \n",
       "L 2284 0 \n",
       "L 1503 0 \n",
       "L 191 3500 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6e\" d=\"M 3513 2113 \n",
       "L 3513 0 \n",
       "L 2938 0 \n",
       "L 2938 2094 \n",
       "Q 2938 2591 2744 2837 \n",
       "Q 2550 3084 2163 3084 \n",
       "Q 1697 3084 1428 2787 \n",
       "Q 1159 2491 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1366 3272 1645 3428 \n",
       "Q 1925 3584 2291 3584 \n",
       "Q 2894 3584 3203 3211 \n",
       "Q 3513 2838 3513 2113 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-75\" d=\"M 544 1381 \n",
       "L 544 3500 \n",
       "L 1119 3500 \n",
       "L 1119 1403 \n",
       "Q 1119 906 1312 657 \n",
       "Q 1506 409 1894 409 \n",
       "Q 2359 409 2629 706 \n",
       "Q 2900 1003 2900 1516 \n",
       "L 2900 3500 \n",
       "L 3475 3500 \n",
       "L 3475 0 \n",
       "L 2900 0 \n",
       "L 2900 538 \n",
       "Q 2691 219 2414 64 \n",
       "Q 2138 -91 1772 -91 \n",
       "Q 1169 -91 856 284 \n",
       "Q 544 659 544 1381 \n",
       "z\n",
       "M 1991 3584 \n",
       "L 1991 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_14\">\n",
       "     <!-- 1e6 -->\n",
       "     <g transform=\"translate(34.240625 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-36\" x=\"125.146484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_12\">\n",
       "    <path d=\"M 84.606751 194.19231 \n",
       "L 109.887045 236.317723 \n",
       "L 135.445146 253.812806 \n",
       "L 161.003246 126.777807 \n",
       "L 186.005735 247.083062 \n",
       "L 211.28603 127.859295 \n",
       "L 236.84413 207.246866 \n",
       "L 262.40223 165.14415 \n",
       "L 287.404719 236.822072 \n",
       "L 312.685014 214.407741 \n",
       "L 338.243114 238.840312 \n",
       "L 363.801214 198.365997 \n",
       "L 388.803704 212.157628 \n",
       "L 414.083998 236.285346 \n",
       "L 439.642099 242.148718 \n",
       "L 465.200199 225.941819 \n",
       "L 490.480494 34.918125 \n",
       "L 515.760788 110.387811 \n",
       "L 541.318888 286.918125 \n",
       "\" clip-path=\"url(#pc6ba5990d8)\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 34.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 592.240625 299.518125 \n",
       "L 592.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_5\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 592.240625 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_6\">\n",
       "    <path d=\"M 34.240625 22.318125 \n",
       "L 592.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_15\">\n",
       "    <!-- revenue -->\n",
       "    <g transform=\"translate(288.677188 16.318125)scale(0.12 -0.12)\">\n",
       "     <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       "  <g id=\"axes_2\">\n",
       "   <g id=\"matplotlib.axis_3\">\n",
       "    <g id=\"ytick_6\">\n",
       "     <g id=\"line2d_13\">\n",
       "      <defs>\n",
       "       <path id=\"mb294ddd091\" d=\"M 0 0 \n",
       "L 3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#mb294ddd091\" x=\"592.240625\" y=\"263.013224\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_16\">\n",
       "      <!-- 0.5 -->\n",
       "      <g transform=\"translate(599.240625 266.812442)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-2e\" d=\"M 684 794 \n",
       "L 1344 794 \n",
       "L 1344 0 \n",
       "L 684 0 \n",
       "L 684 794 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_7\">\n",
       "     <g id=\"line2d_14\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mb294ddd091\" x=\"592.240625\" y=\"204.115897\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_17\">\n",
       "      <!-- 1.0 -->\n",
       "      <g transform=\"translate(599.240625 207.915115)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_8\">\n",
       "     <g id=\"line2d_15\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mb294ddd091\" x=\"592.240625\" y=\"145.218569\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_18\">\n",
       "      <!-- 1.5 -->\n",
       "      <g transform=\"translate(599.240625 149.017788)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_9\">\n",
       "     <g id=\"line2d_16\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mb294ddd091\" x=\"592.240625\" y=\"86.321242\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_19\">\n",
       "      <!-- 2.0 -->\n",
       "      <g transform=\"translate(599.240625 90.120461)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_10\">\n",
       "     <g id=\"line2d_17\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mb294ddd091\" x=\"592.240625\" y=\"27.423915\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_20\">\n",
       "      <!-- 2.5 -->\n",
       "      <g transform=\"translate(599.240625 31.223134)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_21\">\n",
       "     <!-- csmar -->\n",
       "     <g transform=\"translate(626.742188 176.261875)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-63\" d=\"M 3122 3366 \n",
       "L 3122 2828 \n",
       "Q 2878 2963 2633 3030 \n",
       "Q 2388 3097 2138 3097 \n",
       "Q 1578 3097 1268 2742 \n",
       "Q 959 2388 959 1747 \n",
       "Q 959 1106 1268 751 \n",
       "Q 1578 397 2138 397 \n",
       "Q 2388 397 2633 464 \n",
       "Q 2878 531 3122 666 \n",
       "L 3122 134 \n",
       "Q 2881 22 2623 -34 \n",
       "Q 2366 -91 2075 -91 \n",
       "Q 1284 -91 818 406 \n",
       "Q 353 903 353 1747 \n",
       "Q 353 2603 823 3093 \n",
       "Q 1294 3584 2113 3584 \n",
       "Q 2378 3584 2631 3529 \n",
       "Q 2884 3475 3122 3366 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-73\" d=\"M 2834 3397 \n",
       "L 2834 2853 \n",
       "Q 2591 2978 2328 3040 \n",
       "Q 2066 3103 1784 3103 \n",
       "Q 1356 3103 1142 2972 \n",
       "Q 928 2841 928 2578 \n",
       "Q 928 2378 1081 2264 \n",
       "Q 1234 2150 1697 2047 \n",
       "L 1894 2003 \n",
       "Q 2506 1872 2764 1633 \n",
       "Q 3022 1394 3022 966 \n",
       "Q 3022 478 2636 193 \n",
       "Q 2250 -91 1575 -91 \n",
       "Q 1294 -91 989 -36 \n",
       "Q 684 19 347 128 \n",
       "L 347 722 \n",
       "Q 666 556 975 473 \n",
       "Q 1284 391 1588 391 \n",
       "Q 1994 391 2212 530 \n",
       "Q 2431 669 2431 922 \n",
       "Q 2431 1156 2273 1281 \n",
       "Q 2116 1406 1581 1522 \n",
       "L 1381 1569 \n",
       "Q 847 1681 609 1914 \n",
       "Q 372 2147 372 2553 \n",
       "Q 372 3047 722 3315 \n",
       "Q 1072 3584 1716 3584 \n",
       "Q 2034 3584 2315 3537 \n",
       "Q 2597 3491 2834 3397 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-61\" d=\"M 2194 1759 \n",
       "Q 1497 1759 1228 1600 \n",
       "Q 959 1441 959 1056 \n",
       "Q 959 750 1161 570 \n",
       "Q 1363 391 1709 391 \n",
       "Q 2188 391 2477 730 \n",
       "Q 2766 1069 2766 1631 \n",
       "L 2766 1759 \n",
       "L 2194 1759 \n",
       "z\n",
       "M 3341 1997 \n",
       "L 3341 0 \n",
       "L 2766 0 \n",
       "L 2766 531 \n",
       "Q 2569 213 2275 61 \n",
       "Q 1981 -91 1556 -91 \n",
       "Q 1019 -91 701 211 \n",
       "Q 384 513 384 1019 \n",
       "Q 384 1609 779 1909 \n",
       "Q 1175 2209 1959 2209 \n",
       "L 2766 2209 \n",
       "L 2766 2266 \n",
       "Q 2766 2663 2505 2880 \n",
       "Q 2244 3097 1772 3097 \n",
       "Q 1472 3097 1187 3025 \n",
       "Q 903 2953 641 2809 \n",
       "L 641 3341 \n",
       "Q 956 3463 1253 3523 \n",
       "Q 1550 3584 1831 3584 \n",
       "Q 2591 3584 2966 3190 \n",
       "Q 3341 2797 3341 1997 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_22\">\n",
       "     <!-- 1e9 -->\n",
       "     <g transform=\"translate(573.3625 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-39\" x=\"125.146484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_18\">\n",
       "    <path d=\"M 59.604261 186.320094 \n",
       "L 84.606751 286.918125 \n",
       "L 109.887045 243.855492 \n",
       "L 135.445146 209.963007 \n",
       "L 161.003246 178.457681 \n",
       "L 161.281051 178.457681 \n",
       "L 186.005735 282.305534 \n",
       "L 211.28603 232.678478 \n",
       "L 236.84413 188.465268 \n",
       "L 262.40223 147.835948 \n",
       "L 262.680036 147.835948 \n",
       "L 287.404719 273.042411 \n",
       "L 312.685014 200.254443 \n",
       "L 338.243114 150.510742 \n",
       "L 363.801214 98.385929 \n",
       "L 364.07902 98.385929 \n",
       "L 388.803704 263.093805 \n",
       "L 414.083998 184.253298 \n",
       "L 439.642099 124.314174 \n",
       "L 465.200199 72.549203 \n",
       "L 465.478004 72.549203 \n",
       "L 490.480494 258.223828 \n",
       "L 515.760788 161.163715 \n",
       "L 541.318888 94.05245 \n",
       "L 566.876989 34.918125 \n",
       "\" clip-path=\"url(#pc6ba5990d8)\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_7\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 34.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_8\">\n",
       "    <path d=\"M 592.240625 299.518125 \n",
       "L 592.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_9\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 592.240625 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_10\">\n",
       "    <path d=\"M 34.240625 22.318125 \n",
       "L 592.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"legend_1\">\n",
       "    <g id=\"patch_11\">\n",
       "     <path d=\"M 41.240625 59.674375 \n",
       "L 126.278125 59.674375 \n",
       "Q 128.278125 59.674375 128.278125 57.674375 \n",
       "L 128.278125 29.318125 \n",
       "Q 128.278125 27.318125 126.278125 27.318125 \n",
       "L 41.240625 27.318125 \n",
       "Q 39.240625 27.318125 39.240625 29.318125 \n",
       "L 39.240625 57.674375 \n",
       "Q 39.240625 59.674375 41.240625 59.674375 \n",
       "z\n",
       "\" style=\"fill: #ffffff; opacity: 0.8; stroke: #cccccc; stroke-linejoin: miter\"/>\n",
       "    </g>\n",
       "    <g id=\"line2d_19\">\n",
       "     <path d=\"M 43.240625 35.416562 \n",
       "L 53.240625 35.416562 \n",
       "L 63.240625 35.416562 \n",
       "\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_23\">\n",
       "     <!-- onlinedata -->\n",
       "     <g transform=\"translate(71.240625 38.916562)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-6f\" d=\"M 1959 3097 \n",
       "Q 1497 3097 1228 2736 \n",
       "Q 959 2375 959 1747 \n",
       "Q 959 1119 1226 758 \n",
       "Q 1494 397 1959 397 \n",
       "Q 2419 397 2687 759 \n",
       "Q 2956 1122 2956 1747 \n",
       "Q 2956 2369 2687 2733 \n",
       "Q 2419 3097 1959 3097 \n",
       "z\n",
       "M 1959 3584 \n",
       "Q 2709 3584 3137 3096 \n",
       "Q 3566 2609 3566 1747 \n",
       "Q 3566 888 3137 398 \n",
       "Q 2709 -91 1959 -91 \n",
       "Q 1206 -91 779 398 \n",
       "Q 353 888 353 1747 \n",
       "Q 353 2609 779 3096 \n",
       "Q 1206 3584 1959 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6c\" d=\"M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-64\" d=\"M 2906 2969 \n",
       "L 2906 4863 \n",
       "L 3481 4863 \n",
       "L 3481 0 \n",
       "L 2906 0 \n",
       "L 2906 525 \n",
       "Q 2725 213 2448 61 \n",
       "Q 2172 -91 1784 -91 \n",
       "Q 1150 -91 751 415 \n",
       "Q 353 922 353 1747 \n",
       "Q 353 2572 751 3078 \n",
       "Q 1150 3584 1784 3584 \n",
       "Q 2172 3584 2448 3432 \n",
       "Q 2725 3281 2906 2969 \n",
       "z\n",
       "M 947 1747 \n",
       "Q 947 1113 1208 752 \n",
       "Q 1469 391 1925 391 \n",
       "Q 2381 391 2643 752 \n",
       "Q 2906 1113 2906 1747 \n",
       "Q 2906 2381 2643 2742 \n",
       "Q 2381 3103 1925 3103 \n",
       "Q 1469 3103 1208 2742 \n",
       "Q 947 2381 947 1747 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-6f\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"61.181641\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6c\" x=\"124.560547\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"152.34375\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"180.126953\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"243.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.029297\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.785156\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"468.994141\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_20\">\n",
       "     <path d=\"M 43.240625 50.094688 \n",
       "L 53.240625 50.094688 \n",
       "L 63.240625 50.094688 \n",
       "\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_24\">\n",
       "     <!-- csmardata -->\n",
       "     <g transform=\"translate(71.240625 53.594688)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.134766\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.611328\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.890625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"469.099609\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       " </g>\n",
       " <defs>\n",
       "  <clipPath id=\"pc6ba5990d8\">\n",
       "   <rect x=\"34.240625\" y=\"22.318125\" width=\"558\" height=\"277.2\"/>\n",
       "  </clipPath>\n",
       " </defs>\n",
       "</svg>\n"
      ],
      "text/plain": [
       "<Figure size 1000x500 with 2 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig = plt.figure(figsize=(10, 5))\n",
    "ax1 = fig.add_subplot(1, 1, 1)  #(x, x, x)这里前两个表示几*几的网格，最后一个表示第几子图\n",
    "ax1.plot(Qdata2['煌上煌（002695.SZ）'],color='red',label='onlinedata')\n",
    "ax1.set_xlabel('time')  # 设置横坐标标签\n",
    "ax1.set_ylabel('revenue')  # 设置左边纵坐标标签\n",
    "ax1.set_title(\"revenue\")  # 给整张图命名\n",
    "data_format = mdates.DateFormatter('%Y')\n",
    "ax1.xaxis.set_major_formatter(data_format)\n",
    "ax1.xaxis.set_major_locator(mdates.YearLocator())\n",
    "plt.xticks(rotation = 90)\n",
    "ax2 = ax1.twinx()  #twinx()函数表示共享x轴\n",
    "ax2.plot(finaldata['煌上煌'],color='blue',label='csmardata')\n",
    "ax2.set_ylabel('csmar')  # 设置右边纵坐标标签\n",
    "lines, labels = ax1.get_legend_handles_labels()\n",
    "lines2, labels2 = ax2.get_legend_handles_labels()\n",
    "ax2.legend(lines + lines2, labels + labels2, loc='upper left')\n",
    "fig = plt.gcf()\n",
    "fig.savefig('煌上煌.pdf', bbox_inches='tight')\n",
    "plt.show();"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
       "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"626.48125pt\" height=\"352.84625pt\" viewBox=\"0 0 626.48125 352.84625\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">\n",
       " <metadata>\n",
       "  <rdf:RDF xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n",
       "   <cc:Work>\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\n",
       "    <dc:date>2024-12-19T16:28:02.197324</dc:date>\n",
       "    <dc:format>image/svg+xml</dc:format>\n",
       "    <dc:creator>\n",
       "     <cc:Agent>\n",
       "      <dc:title>Matplotlib v3.5.2, https://matplotlib.org/</dc:title>\n",
       "     </cc:Agent>\n",
       "    </dc:creator>\n",
       "   </cc:Work>\n",
       "  </rdf:RDF>\n",
       " </metadata>\n",
       " <defs>\n",
       "  <style type=\"text/css\">*{stroke-linejoin: round; stroke-linecap: butt}</style>\n",
       " </defs>\n",
       " <g id=\"figure_1\">\n",
       "  <g id=\"patch_1\">\n",
       "   <path d=\"M 0 352.84625 \n",
       "L 626.48125 352.84625 \n",
       "L 626.48125 0 \n",
       "L 0 0 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "  </g>\n",
       "  <g id=\"axes_1\">\n",
       "   <g id=\"patch_2\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 592.240625 299.518125 \n",
       "L 592.240625 22.318125 \n",
       "L 34.240625 22.318125 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_1\">\n",
       "    <g id=\"xtick_1\">\n",
       "     <g id=\"line2d_1\">\n",
       "      <defs>\n",
       "       <path id=\"m09b8648589\" d=\"M 0 0 \n",
       "L 0 3.5 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m09b8648589\" x=\"140.253612\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_1\">\n",
       "      <!-- 2017 -->\n",
       "      <g transform=\"translate(143.012987 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-32\" d=\"M 1228 531 \n",
       "L 3431 531 \n",
       "L 3431 0 \n",
       "L 469 0 \n",
       "L 469 531 \n",
       "Q 828 903 1448 1529 \n",
       "Q 2069 2156 2228 2338 \n",
       "Q 2531 2678 2651 2914 \n",
       "Q 2772 3150 2772 3378 \n",
       "Q 2772 3750 2511 3984 \n",
       "Q 2250 4219 1831 4219 \n",
       "Q 1534 4219 1204 4116 \n",
       "Q 875 4013 500 3803 \n",
       "L 500 4441 \n",
       "Q 881 4594 1212 4672 \n",
       "Q 1544 4750 1819 4750 \n",
       "Q 2544 4750 2975 4387 \n",
       "Q 3406 4025 3406 3419 \n",
       "Q 3406 3131 3298 2873 \n",
       "Q 3191 2616 2906 2266 \n",
       "Q 2828 2175 2409 1742 \n",
       "Q 1991 1309 1228 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-30\" d=\"M 2034 4250 \n",
       "Q 1547 4250 1301 3770 \n",
       "Q 1056 3291 1056 2328 \n",
       "Q 1056 1369 1301 889 \n",
       "Q 1547 409 2034 409 \n",
       "Q 2525 409 2770 889 \n",
       "Q 3016 1369 3016 2328 \n",
       "Q 3016 3291 2770 3770 \n",
       "Q 2525 4250 2034 4250 \n",
       "z\n",
       "M 2034 4750 \n",
       "Q 2819 4750 3233 4129 \n",
       "Q 3647 3509 3647 2328 \n",
       "Q 3647 1150 3233 529 \n",
       "Q 2819 -91 2034 -91 \n",
       "Q 1250 -91 836 529 \n",
       "Q 422 1150 422 2328 \n",
       "Q 422 3509 836 4129 \n",
       "Q 1250 4750 2034 4750 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-31\" d=\"M 794 531 \n",
       "L 1825 531 \n",
       "L 1825 4091 \n",
       "L 703 3866 \n",
       "L 703 4441 \n",
       "L 1819 4666 \n",
       "L 2450 4666 \n",
       "L 2450 531 \n",
       "L 3481 531 \n",
       "L 3481 0 \n",
       "L 794 0 \n",
       "L 794 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-37\" d=\"M 525 4666 \n",
       "L 3525 4666 \n",
       "L 3525 4397 \n",
       "L 1831 0 \n",
       "L 1172 0 \n",
       "L 2766 4134 \n",
       "L 525 4134 \n",
       "L 525 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-37\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_2\">\n",
       "     <g id=\"line2d_2\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m09b8648589\" x=\"246.909456\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_2\">\n",
       "      <!-- 2018 -->\n",
       "      <g transform=\"translate(249.668831 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-38\" d=\"M 2034 2216 \n",
       "Q 1584 2216 1326 1975 \n",
       "Q 1069 1734 1069 1313 \n",
       "Q 1069 891 1326 650 \n",
       "Q 1584 409 2034 409 \n",
       "Q 2484 409 2743 651 \n",
       "Q 3003 894 3003 1313 \n",
       "Q 3003 1734 2745 1975 \n",
       "Q 2488 2216 2034 2216 \n",
       "z\n",
       "M 1403 2484 \n",
       "Q 997 2584 770 2862 \n",
       "Q 544 3141 544 3541 \n",
       "Q 544 4100 942 4425 \n",
       "Q 1341 4750 2034 4750 \n",
       "Q 2731 4750 3128 4425 \n",
       "Q 3525 4100 3525 3541 \n",
       "Q 3525 3141 3298 2862 \n",
       "Q 3072 2584 2669 2484 \n",
       "Q 3125 2378 3379 2068 \n",
       "Q 3634 1759 3634 1313 \n",
       "Q 3634 634 3220 271 \n",
       "Q 2806 -91 2034 -91 \n",
       "Q 1263 -91 848 271 \n",
       "Q 434 634 434 1313 \n",
       "Q 434 1759 690 2068 \n",
       "Q 947 2378 1403 2484 \n",
       "z\n",
       "M 1172 3481 \n",
       "Q 1172 3119 1398 2916 \n",
       "Q 1625 2713 2034 2713 \n",
       "Q 2441 2713 2670 2916 \n",
       "Q 2900 3119 2900 3481 \n",
       "Q 2900 3844 2670 4047 \n",
       "Q 2441 4250 2034 4250 \n",
       "Q 1625 4250 1398 4047 \n",
       "Q 1172 3844 1172 3481 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-38\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_3\">\n",
       "     <g id=\"line2d_3\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m09b8648589\" x=\"353.5653\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_3\">\n",
       "      <!-- 2019 -->\n",
       "      <g transform=\"translate(356.324675 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-39\" d=\"M 703 97 \n",
       "L 703 672 \n",
       "Q 941 559 1184 500 \n",
       "Q 1428 441 1663 441 \n",
       "Q 2288 441 2617 861 \n",
       "Q 2947 1281 2994 2138 \n",
       "Q 2813 1869 2534 1725 \n",
       "Q 2256 1581 1919 1581 \n",
       "Q 1219 1581 811 2004 \n",
       "Q 403 2428 403 3163 \n",
       "Q 403 3881 828 4315 \n",
       "Q 1253 4750 1959 4750 \n",
       "Q 2769 4750 3195 4129 \n",
       "Q 3622 3509 3622 2328 \n",
       "Q 3622 1225 3098 567 \n",
       "Q 2575 -91 1691 -91 \n",
       "Q 1453 -91 1209 -44 \n",
       "Q 966 3 703 97 \n",
       "z\n",
       "M 1959 2075 \n",
       "Q 2384 2075 2632 2365 \n",
       "Q 2881 2656 2881 3163 \n",
       "Q 2881 3666 2632 3958 \n",
       "Q 2384 4250 1959 4250 \n",
       "Q 1534 4250 1286 3958 \n",
       "Q 1038 3666 1038 3163 \n",
       "Q 1038 2656 1286 2365 \n",
       "Q 1534 2075 1959 2075 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-39\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_4\">\n",
       "     <g id=\"line2d_4\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m09b8648589\" x=\"460.221144\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_4\">\n",
       "      <!-- 2020 -->\n",
       "      <g transform=\"translate(462.980519 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_5\">\n",
       "     <g id=\"line2d_5\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m09b8648589\" x=\"567.169196\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_5\">\n",
       "      <!-- 2021 -->\n",
       "      <g transform=\"translate(569.928571 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_6\">\n",
       "     <!-- time -->\n",
       "     <g transform=\"translate(301.944531 343.566563)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-74\" d=\"M 1172 4494 \n",
       "L 1172 3500 \n",
       "L 2356 3500 \n",
       "L 2356 3053 \n",
       "L 1172 3053 \n",
       "L 1172 1153 \n",
       "Q 1172 725 1289 603 \n",
       "Q 1406 481 1766 481 \n",
       "L 2356 481 \n",
       "L 2356 0 \n",
       "L 1766 0 \n",
       "Q 1100 0 847 248 \n",
       "Q 594 497 594 1153 \n",
       "L 594 3053 \n",
       "L 172 3053 \n",
       "L 172 3500 \n",
       "L 594 3500 \n",
       "L 594 4494 \n",
       "L 1172 4494 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-69\" d=\"M 603 3500 \n",
       "L 1178 3500 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 3500 \n",
       "z\n",
       "M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 4134 \n",
       "L 603 4134 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6d\" d=\"M 3328 2828 \n",
       "Q 3544 3216 3844 3400 \n",
       "Q 4144 3584 4550 3584 \n",
       "Q 5097 3584 5394 3201 \n",
       "Q 5691 2819 5691 2113 \n",
       "L 5691 0 \n",
       "L 5113 0 \n",
       "L 5113 2094 \n",
       "Q 5113 2597 4934 2840 \n",
       "Q 4756 3084 4391 3084 \n",
       "Q 3944 3084 3684 2787 \n",
       "Q 3425 2491 3425 1978 \n",
       "L 3425 0 \n",
       "L 2847 0 \n",
       "L 2847 2094 \n",
       "Q 2847 2600 2669 2842 \n",
       "Q 2491 3084 2119 3084 \n",
       "Q 1678 3084 1418 2786 \n",
       "Q 1159 2488 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1356 3278 1631 3431 \n",
       "Q 1906 3584 2284 3584 \n",
       "Q 2666 3584 2933 3390 \n",
       "Q 3200 3197 3328 2828 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-65\" d=\"M 3597 1894 \n",
       "L 3597 1613 \n",
       "L 953 1613 \n",
       "Q 991 1019 1311 708 \n",
       "Q 1631 397 2203 397 \n",
       "Q 2534 397 2845 478 \n",
       "Q 3156 559 3463 722 \n",
       "L 3463 178 \n",
       "Q 3153 47 2828 -22 \n",
       "Q 2503 -91 2169 -91 \n",
       "Q 1331 -91 842 396 \n",
       "Q 353 884 353 1716 \n",
       "Q 353 2575 817 3079 \n",
       "Q 1281 3584 2069 3584 \n",
       "Q 2775 3584 3186 3129 \n",
       "Q 3597 2675 3597 1894 \n",
       "z\n",
       "M 3022 2063 \n",
       "Q 3016 2534 2758 2815 \n",
       "Q 2500 3097 2075 3097 \n",
       "Q 1594 3097 1305 2825 \n",
       "Q 1016 2553 972 2059 \n",
       "L 3022 2063 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-74\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"39.208984\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"66.992188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"164.404297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_2\">\n",
       "    <g id=\"ytick_1\">\n",
       "     <g id=\"line2d_6\">\n",
       "      <defs>\n",
       "       <path id=\"m0c2ec53aae\" d=\"M 0 0 \n",
       "L -3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0c2ec53aae\" x=\"34.240625\" y=\"267.089148\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_7\">\n",
       "      <!-- 1 -->\n",
       "      <g transform=\"translate(20.878125 270.888367)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_7\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0c2ec53aae\" x=\"34.240625\" y=\"220.265953\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_8\">\n",
       "      <!-- 2 -->\n",
       "      <g transform=\"translate(20.878125 224.065172)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_8\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0c2ec53aae\" x=\"34.240625\" y=\"173.442759\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_9\">\n",
       "      <!-- 3 -->\n",
       "      <g transform=\"translate(20.878125 177.241978)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-33\" d=\"M 2597 2516 \n",
       "Q 3050 2419 3304 2112 \n",
       "Q 3559 1806 3559 1356 \n",
       "Q 3559 666 3084 287 \n",
       "Q 2609 -91 1734 -91 \n",
       "Q 1441 -91 1130 -33 \n",
       "Q 819 25 488 141 \n",
       "L 488 750 \n",
       "Q 750 597 1062 519 \n",
       "Q 1375 441 1716 441 \n",
       "Q 2309 441 2620 675 \n",
       "Q 2931 909 2931 1356 \n",
       "Q 2931 1769 2642 2001 \n",
       "Q 2353 2234 1838 2234 \n",
       "L 1294 2234 \n",
       "L 1294 2753 \n",
       "L 1863 2753 \n",
       "Q 2328 2753 2575 2939 \n",
       "Q 2822 3125 2822 3475 \n",
       "Q 2822 3834 2567 4026 \n",
       "Q 2313 4219 1838 4219 \n",
       "Q 1578 4219 1281 4162 \n",
       "Q 984 4106 628 3988 \n",
       "L 628 4550 \n",
       "Q 988 4650 1302 4700 \n",
       "Q 1616 4750 1894 4750 \n",
       "Q 2613 4750 3031 4423 \n",
       "Q 3450 4097 3450 3541 \n",
       "Q 3450 3153 3228 2886 \n",
       "Q 3006 2619 2597 2516 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_9\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0c2ec53aae\" x=\"34.240625\" y=\"126.619564\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_10\">\n",
       "      <!-- 4 -->\n",
       "      <g transform=\"translate(20.878125 130.418783)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-34\" d=\"M 2419 4116 \n",
       "L 825 1625 \n",
       "L 2419 1625 \n",
       "L 2419 4116 \n",
       "z\n",
       "M 2253 4666 \n",
       "L 3047 4666 \n",
       "L 3047 1625 \n",
       "L 3713 1625 \n",
       "L 3713 1100 \n",
       "L 3047 1100 \n",
       "L 3047 0 \n",
       "L 2419 0 \n",
       "L 2419 1100 \n",
       "L 313 1100 \n",
       "L 313 1709 \n",
       "L 2253 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-34\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_5\">\n",
       "     <g id=\"line2d_10\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0c2ec53aae\" x=\"34.240625\" y=\"79.79637\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_11\">\n",
       "      <!-- 5 -->\n",
       "      <g transform=\"translate(20.878125 83.595588)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-35\" d=\"M 691 4666 \n",
       "L 3169 4666 \n",
       "L 3169 4134 \n",
       "L 1269 4134 \n",
       "L 1269 2991 \n",
       "Q 1406 3038 1543 3061 \n",
       "Q 1681 3084 1819 3084 \n",
       "Q 2600 3084 3056 2656 \n",
       "Q 3513 2228 3513 1497 \n",
       "Q 3513 744 3044 326 \n",
       "Q 2575 -91 1722 -91 \n",
       "Q 1428 -91 1123 -41 \n",
       "Q 819 9 494 109 \n",
       "L 494 744 \n",
       "Q 775 591 1075 516 \n",
       "Q 1375 441 1709 441 \n",
       "Q 2250 441 2565 725 \n",
       "Q 2881 1009 2881 1497 \n",
       "Q 2881 1984 2565 2268 \n",
       "Q 2250 2553 1709 2553 \n",
       "Q 1456 2553 1204 2497 \n",
       "Q 953 2441 691 2322 \n",
       "L 691 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-35\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_6\">\n",
       "     <g id=\"line2d_11\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0c2ec53aae\" x=\"34.240625\" y=\"32.973175\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_12\">\n",
       "      <!-- 6 -->\n",
       "      <g transform=\"translate(20.878125 36.772394)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-36\" d=\"M 2113 2584 \n",
       "Q 1688 2584 1439 2293 \n",
       "Q 1191 2003 1191 1497 \n",
       "Q 1191 994 1439 701 \n",
       "Q 1688 409 2113 409 \n",
       "Q 2538 409 2786 701 \n",
       "Q 3034 994 3034 1497 \n",
       "Q 3034 2003 2786 2293 \n",
       "Q 2538 2584 2113 2584 \n",
       "z\n",
       "M 3366 4563 \n",
       "L 3366 3988 \n",
       "Q 3128 4100 2886 4159 \n",
       "Q 2644 4219 2406 4219 \n",
       "Q 1781 4219 1451 3797 \n",
       "Q 1122 3375 1075 2522 \n",
       "Q 1259 2794 1537 2939 \n",
       "Q 1816 3084 2150 3084 \n",
       "Q 2853 3084 3261 2657 \n",
       "Q 3669 2231 3669 1497 \n",
       "Q 3669 778 3244 343 \n",
       "Q 2819 -91 2113 -91 \n",
       "Q 1303 -91 875 529 \n",
       "Q 447 1150 447 2328 \n",
       "Q 447 3434 972 4092 \n",
       "Q 1497 4750 2381 4750 \n",
       "Q 2619 4750 2861 4703 \n",
       "Q 3103 4656 3366 4563 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-36\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_13\">\n",
       "     <!-- revenue -->\n",
       "     <g transform=\"translate(14.798437 181.387656)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-72\" d=\"M 2631 2963 \n",
       "Q 2534 3019 2420 3045 \n",
       "Q 2306 3072 2169 3072 \n",
       "Q 1681 3072 1420 2755 \n",
       "Q 1159 2438 1159 1844 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1341 3275 1631 3429 \n",
       "Q 1922 3584 2338 3584 \n",
       "Q 2397 3584 2469 3576 \n",
       "Q 2541 3569 2628 3553 \n",
       "L 2631 2963 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-76\" d=\"M 191 3500 \n",
       "L 800 3500 \n",
       "L 1894 563 \n",
       "L 2988 3500 \n",
       "L 3597 3500 \n",
       "L 2284 0 \n",
       "L 1503 0 \n",
       "L 191 3500 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6e\" d=\"M 3513 2113 \n",
       "L 3513 0 \n",
       "L 2938 0 \n",
       "L 2938 2094 \n",
       "Q 2938 2591 2744 2837 \n",
       "Q 2550 3084 2163 3084 \n",
       "Q 1697 3084 1428 2787 \n",
       "Q 1159 2491 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1366 3272 1645 3428 \n",
       "Q 1925 3584 2291 3584 \n",
       "Q 2894 3584 3203 3211 \n",
       "Q 3513 2838 3513 2113 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-75\" d=\"M 544 1381 \n",
       "L 544 3500 \n",
       "L 1119 3500 \n",
       "L 1119 1403 \n",
       "Q 1119 906 1312 657 \n",
       "Q 1506 409 1894 409 \n",
       "Q 2359 409 2629 706 \n",
       "Q 2900 1003 2900 1516 \n",
       "L 2900 3500 \n",
       "L 3475 3500 \n",
       "L 3475 0 \n",
       "L 2900 0 \n",
       "L 2900 538 \n",
       "Q 2691 219 2414 64 \n",
       "Q 2138 -91 1772 -91 \n",
       "Q 1169 -91 856 284 \n",
       "Q 544 659 544 1381 \n",
       "z\n",
       "M 1991 3584 \n",
       "L 1991 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_14\">\n",
       "     <!-- 1e8 -->\n",
       "     <g transform=\"translate(34.240625 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-38\" x=\"125.146484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_12\">\n",
       "    <path d=\"M 59.604261 268.448424 \n",
       "L 86.19517 286.918125 \n",
       "L 113.078287 274.849174 \n",
       "L 139.961404 252.163012 \n",
       "L 166.260106 250.351568 \n",
       "L 192.851015 261.489284 \n",
       "L 219.734131 246.171485 \n",
       "L 246.617248 193.123464 \n",
       "L 272.91595 166.82911 \n",
       "L 299.506859 200.191278 \n",
       "L 326.389976 169.340555 \n",
       "L 353.273093 115.758621 \n",
       "L 379.571794 180.715208 \n",
       "L 406.162703 158.294688 \n",
       "L 433.04582 122.546732 \n",
       "L 459.928937 34.918125 \n",
       "L 486.519846 71.433281 \n",
       "L 513.110755 85.384641 \n",
       "L 539.993872 230.39095 \n",
       "\" clip-path=\"url(#pd5be2a2e7b)\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 34.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 592.240625 299.518125 \n",
       "L 592.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_5\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 592.240625 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_6\">\n",
       "    <path d=\"M 34.240625 22.318125 \n",
       "L 592.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_15\">\n",
       "    <!-- revenue -->\n",
       "    <g transform=\"translate(288.677188 16.318125)scale(0.12 -0.12)\">\n",
       "     <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       "  <g id=\"axes_2\">\n",
       "   <g id=\"matplotlib.axis_3\">\n",
       "    <g id=\"ytick_7\">\n",
       "     <g id=\"line2d_13\">\n",
       "      <defs>\n",
       "       <path id=\"mb096b3acb8\" d=\"M 0 0 \n",
       "L 3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#mb096b3acb8\" x=\"592.240625\" y=\"283.083741\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_16\">\n",
       "      <!-- 2 -->\n",
       "      <g transform=\"translate(599.240625 286.88296)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_8\">\n",
       "     <g id=\"line2d_14\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mb096b3acb8\" x=\"592.240625\" y=\"240.9795\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_17\">\n",
       "      <!-- 3 -->\n",
       "      <g transform=\"translate(599.240625 244.778719)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_9\">\n",
       "     <g id=\"line2d_15\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mb096b3acb8\" x=\"592.240625\" y=\"198.875259\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_18\">\n",
       "      <!-- 4 -->\n",
       "      <g transform=\"translate(599.240625 202.674478)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-34\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_10\">\n",
       "     <g id=\"line2d_16\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mb096b3acb8\" x=\"592.240625\" y=\"156.771018\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_19\">\n",
       "      <!-- 5 -->\n",
       "      <g transform=\"translate(599.240625 160.570236)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-35\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_11\">\n",
       "     <g id=\"line2d_17\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mb096b3acb8\" x=\"592.240625\" y=\"114.666776\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_20\">\n",
       "      <!-- 6 -->\n",
       "      <g transform=\"translate(599.240625 118.465995)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-36\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_12\">\n",
       "     <g id=\"line2d_18\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mb096b3acb8\" x=\"592.240625\" y=\"72.562535\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_21\">\n",
       "      <!-- 7 -->\n",
       "      <g transform=\"translate(599.240625 76.361754)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-37\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_13\">\n",
       "     <g id=\"line2d_19\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mb096b3acb8\" x=\"592.240625\" y=\"30.458294\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_22\">\n",
       "      <!-- 8 -->\n",
       "      <g transform=\"translate(599.240625 34.257513)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-38\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_23\">\n",
       "     <!-- csmar -->\n",
       "     <g transform=\"translate(617.201563 176.261875)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-63\" d=\"M 3122 3366 \n",
       "L 3122 2828 \n",
       "Q 2878 2963 2633 3030 \n",
       "Q 2388 3097 2138 3097 \n",
       "Q 1578 3097 1268 2742 \n",
       "Q 959 2388 959 1747 \n",
       "Q 959 1106 1268 751 \n",
       "Q 1578 397 2138 397 \n",
       "Q 2388 397 2633 464 \n",
       "Q 2878 531 3122 666 \n",
       "L 3122 134 \n",
       "Q 2881 22 2623 -34 \n",
       "Q 2366 -91 2075 -91 \n",
       "Q 1284 -91 818 406 \n",
       "Q 353 903 353 1747 \n",
       "Q 353 2603 823 3093 \n",
       "Q 1294 3584 2113 3584 \n",
       "Q 2378 3584 2631 3529 \n",
       "Q 2884 3475 3122 3366 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-73\" d=\"M 2834 3397 \n",
       "L 2834 2853 \n",
       "Q 2591 2978 2328 3040 \n",
       "Q 2066 3103 1784 3103 \n",
       "Q 1356 3103 1142 2972 \n",
       "Q 928 2841 928 2578 \n",
       "Q 928 2378 1081 2264 \n",
       "Q 1234 2150 1697 2047 \n",
       "L 1894 2003 \n",
       "Q 2506 1872 2764 1633 \n",
       "Q 3022 1394 3022 966 \n",
       "Q 3022 478 2636 193 \n",
       "Q 2250 -91 1575 -91 \n",
       "Q 1294 -91 989 -36 \n",
       "Q 684 19 347 128 \n",
       "L 347 722 \n",
       "Q 666 556 975 473 \n",
       "Q 1284 391 1588 391 \n",
       "Q 1994 391 2212 530 \n",
       "Q 2431 669 2431 922 \n",
       "Q 2431 1156 2273 1281 \n",
       "Q 2116 1406 1581 1522 \n",
       "L 1381 1569 \n",
       "Q 847 1681 609 1914 \n",
       "Q 372 2147 372 2553 \n",
       "Q 372 3047 722 3315 \n",
       "Q 1072 3584 1716 3584 \n",
       "Q 2034 3584 2315 3537 \n",
       "Q 2597 3491 2834 3397 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-61\" d=\"M 2194 1759 \n",
       "Q 1497 1759 1228 1600 \n",
       "Q 959 1441 959 1056 \n",
       "Q 959 750 1161 570 \n",
       "Q 1363 391 1709 391 \n",
       "Q 2188 391 2477 730 \n",
       "Q 2766 1069 2766 1631 \n",
       "L 2766 1759 \n",
       "L 2194 1759 \n",
       "z\n",
       "M 3341 1997 \n",
       "L 3341 0 \n",
       "L 2766 0 \n",
       "L 2766 531 \n",
       "Q 2569 213 2275 61 \n",
       "Q 1981 -91 1556 -91 \n",
       "Q 1019 -91 701 211 \n",
       "Q 384 513 384 1019 \n",
       "Q 384 1609 779 1909 \n",
       "Q 1175 2209 1959 2209 \n",
       "L 2766 2209 \n",
       "L 2766 2266 \n",
       "Q 2766 2663 2505 2880 \n",
       "Q 2244 3097 1772 3097 \n",
       "Q 1472 3097 1187 3025 \n",
       "Q 903 2953 641 2809 \n",
       "L 641 3341 \n",
       "Q 956 3463 1253 3523 \n",
       "Q 1550 3584 1831 3584 \n",
       "Q 2591 3584 2966 3190 \n",
       "Q 3341 2797 3341 1997 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_24\">\n",
       "     <!-- 1e9 -->\n",
       "     <g transform=\"translate(573.3625 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-39\" x=\"125.146484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_20\">\n",
       "    <path d=\"M 353.5653 98.76996 \n",
       "M 459.928937 42.458303 \n",
       "L 460.221144 42.458303 \n",
       "L 486.519846 286.918125 \n",
       "L 513.110755 215.28283 \n",
       "L 539.993872 134.461305 \n",
       "L 566.876989 34.918125 \n",
       "\" clip-path=\"url(#pd5be2a2e7b)\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_7\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 34.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_8\">\n",
       "    <path d=\"M 592.240625 299.518125 \n",
       "L 592.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_9\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 592.240625 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_10\">\n",
       "    <path d=\"M 34.240625 22.318125 \n",
       "L 592.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"legend_1\">\n",
       "    <g id=\"patch_11\">\n",
       "     <path d=\"M 41.240625 59.674375 \n",
       "L 126.278125 59.674375 \n",
       "Q 128.278125 59.674375 128.278125 57.674375 \n",
       "L 128.278125 29.318125 \n",
       "Q 128.278125 27.318125 126.278125 27.318125 \n",
       "L 41.240625 27.318125 \n",
       "Q 39.240625 27.318125 39.240625 29.318125 \n",
       "L 39.240625 57.674375 \n",
       "Q 39.240625 59.674375 41.240625 59.674375 \n",
       "z\n",
       "\" style=\"fill: #ffffff; opacity: 0.8; stroke: #cccccc; stroke-linejoin: miter\"/>\n",
       "    </g>\n",
       "    <g id=\"line2d_21\">\n",
       "     <path d=\"M 43.240625 35.416562 \n",
       "L 53.240625 35.416562 \n",
       "L 63.240625 35.416562 \n",
       "\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_25\">\n",
       "     <!-- onlinedata -->\n",
       "     <g transform=\"translate(71.240625 38.916562)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-6f\" d=\"M 1959 3097 \n",
       "Q 1497 3097 1228 2736 \n",
       "Q 959 2375 959 1747 \n",
       "Q 959 1119 1226 758 \n",
       "Q 1494 397 1959 397 \n",
       "Q 2419 397 2687 759 \n",
       "Q 2956 1122 2956 1747 \n",
       "Q 2956 2369 2687 2733 \n",
       "Q 2419 3097 1959 3097 \n",
       "z\n",
       "M 1959 3584 \n",
       "Q 2709 3584 3137 3096 \n",
       "Q 3566 2609 3566 1747 \n",
       "Q 3566 888 3137 398 \n",
       "Q 2709 -91 1959 -91 \n",
       "Q 1206 -91 779 398 \n",
       "Q 353 888 353 1747 \n",
       "Q 353 2609 779 3096 \n",
       "Q 1206 3584 1959 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6c\" d=\"M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-64\" d=\"M 2906 2969 \n",
       "L 2906 4863 \n",
       "L 3481 4863 \n",
       "L 3481 0 \n",
       "L 2906 0 \n",
       "L 2906 525 \n",
       "Q 2725 213 2448 61 \n",
       "Q 2172 -91 1784 -91 \n",
       "Q 1150 -91 751 415 \n",
       "Q 353 922 353 1747 \n",
       "Q 353 2572 751 3078 \n",
       "Q 1150 3584 1784 3584 \n",
       "Q 2172 3584 2448 3432 \n",
       "Q 2725 3281 2906 2969 \n",
       "z\n",
       "M 947 1747 \n",
       "Q 947 1113 1208 752 \n",
       "Q 1469 391 1925 391 \n",
       "Q 2381 391 2643 752 \n",
       "Q 2906 1113 2906 1747 \n",
       "Q 2906 2381 2643 2742 \n",
       "Q 2381 3103 1925 3103 \n",
       "Q 1469 3103 1208 2742 \n",
       "Q 947 2381 947 1747 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-6f\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"61.181641\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6c\" x=\"124.560547\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"152.34375\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"180.126953\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"243.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.029297\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.785156\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"468.994141\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_22\">\n",
       "     <path d=\"M 43.240625 50.094688 \n",
       "L 53.240625 50.094688 \n",
       "L 63.240625 50.094688 \n",
       "\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_26\">\n",
       "     <!-- csmardata -->\n",
       "     <g transform=\"translate(71.240625 53.594688)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.134766\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.611328\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.890625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"469.099609\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       " </g>\n",
       " <defs>\n",
       "  <clipPath id=\"pd5be2a2e7b\">\n",
       "   <rect x=\"34.240625\" y=\"22.318125\" width=\"558\" height=\"277.2\"/>\n",
       "  </clipPath>\n",
       " </defs>\n",
       "</svg>\n"
      ],
      "text/plain": [
       "<Figure size 1000x500 with 2 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig = plt.figure(figsize=(10, 5))\n",
    "ax1 = fig.add_subplot(1, 1, 1)  #(x, x, x)这里前两个表示几*几的网格，最后一个表示第几子图\n",
    "ax1.plot(Qdata2['良品铺子（603719.SH）'],color='red',label='onlinedata')\n",
    "ax1.set_xlabel('time')  # 设置横坐标标签\n",
    "ax1.set_ylabel('revenue')  # 设置左边纵坐标标签\n",
    "ax1.set_title(\"revenue\")  # 给整张图命名\n",
    "data_format = mdates.DateFormatter('%Y')\n",
    "ax1.xaxis.set_major_formatter(data_format)\n",
    "ax1.xaxis.set_major_locator(mdates.YearLocator())\n",
    "plt.xticks(rotation = 90)\n",
    "ax2 = ax1.twinx()  #twinx()函数表示共享x轴\n",
    "ax2.plot(finaldata['良品铺子'],color='blue',label='csmardata')\n",
    "ax2.set_ylabel('csmar')  # 设置右边纵坐标标签\n",
    "lines, labels = ax1.get_legend_handles_labels()\n",
    "lines2, labels2 = ax2.get_legend_handles_labels()\n",
    "ax2.legend(lines + lines2, labels + labels2, loc='upper left')\n",
    "fig = plt.gcf()\n",
    "fig.savefig('良品铺子.pdf', bbox_inches='tight')\n",
    "plt.show();"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
       "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"626.48125pt\" height=\"352.84625pt\" viewBox=\"0 0 626.48125 352.84625\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">\n",
       " <metadata>\n",
       "  <rdf:RDF xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n",
       "   <cc:Work>\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\n",
       "    <dc:date>2024-12-19T16:28:45.442128</dc:date>\n",
       "    <dc:format>image/svg+xml</dc:format>\n",
       "    <dc:creator>\n",
       "     <cc:Agent>\n",
       "      <dc:title>Matplotlib v3.5.2, https://matplotlib.org/</dc:title>\n",
       "     </cc:Agent>\n",
       "    </dc:creator>\n",
       "   </cc:Work>\n",
       "  </rdf:RDF>\n",
       " </metadata>\n",
       " <defs>\n",
       "  <style type=\"text/css\">*{stroke-linejoin: round; stroke-linecap: butt}</style>\n",
       " </defs>\n",
       " <g id=\"figure_1\">\n",
       "  <g id=\"patch_1\">\n",
       "   <path d=\"M 0 352.84625 \n",
       "L 626.48125 352.84625 \n",
       "L 626.48125 0 \n",
       "L 0 0 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "  </g>\n",
       "  <g id=\"axes_1\">\n",
       "   <g id=\"patch_2\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 592.240625 299.518125 \n",
       "L 592.240625 22.318125 \n",
       "L 34.240625 22.318125 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_1\">\n",
       "    <g id=\"xtick_1\">\n",
       "     <g id=\"line2d_1\">\n",
       "      <defs>\n",
       "       <path id=\"m0a13afd8ed\" d=\"M 0 0 \n",
       "L 0 3.5 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0a13afd8ed\" x=\"59.604261\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_1\">\n",
       "      <!-- 2016 -->\n",
       "      <g transform=\"translate(62.363636 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-32\" d=\"M 1228 531 \n",
       "L 3431 531 \n",
       "L 3431 0 \n",
       "L 469 0 \n",
       "L 469 531 \n",
       "Q 828 903 1448 1529 \n",
       "Q 2069 2156 2228 2338 \n",
       "Q 2531 2678 2651 2914 \n",
       "Q 2772 3150 2772 3378 \n",
       "Q 2772 3750 2511 3984 \n",
       "Q 2250 4219 1831 4219 \n",
       "Q 1534 4219 1204 4116 \n",
       "Q 875 4013 500 3803 \n",
       "L 500 4441 \n",
       "Q 881 4594 1212 4672 \n",
       "Q 1544 4750 1819 4750 \n",
       "Q 2544 4750 2975 4387 \n",
       "Q 3406 4025 3406 3419 \n",
       "Q 3406 3131 3298 2873 \n",
       "Q 3191 2616 2906 2266 \n",
       "Q 2828 2175 2409 1742 \n",
       "Q 1991 1309 1228 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-30\" d=\"M 2034 4250 \n",
       "Q 1547 4250 1301 3770 \n",
       "Q 1056 3291 1056 2328 \n",
       "Q 1056 1369 1301 889 \n",
       "Q 1547 409 2034 409 \n",
       "Q 2525 409 2770 889 \n",
       "Q 3016 1369 3016 2328 \n",
       "Q 3016 3291 2770 3770 \n",
       "Q 2525 4250 2034 4250 \n",
       "z\n",
       "M 2034 4750 \n",
       "Q 2819 4750 3233 4129 \n",
       "Q 3647 3509 3647 2328 \n",
       "Q 3647 1150 3233 529 \n",
       "Q 2819 -91 2034 -91 \n",
       "Q 1250 -91 836 529 \n",
       "Q 422 1150 422 2328 \n",
       "Q 422 3509 836 4129 \n",
       "Q 1250 4750 2034 4750 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-31\" d=\"M 794 531 \n",
       "L 1825 531 \n",
       "L 1825 4091 \n",
       "L 703 3866 \n",
       "L 703 4441 \n",
       "L 1819 4666 \n",
       "L 2450 4666 \n",
       "L 2450 531 \n",
       "L 3481 531 \n",
       "L 3481 0 \n",
       "L 794 0 \n",
       "L 794 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-36\" d=\"M 2113 2584 \n",
       "Q 1688 2584 1439 2293 \n",
       "Q 1191 2003 1191 1497 \n",
       "Q 1191 994 1439 701 \n",
       "Q 1688 409 2113 409 \n",
       "Q 2538 409 2786 701 \n",
       "Q 3034 994 3034 1497 \n",
       "Q 3034 2003 2786 2293 \n",
       "Q 2538 2584 2113 2584 \n",
       "z\n",
       "M 3366 4563 \n",
       "L 3366 3988 \n",
       "Q 3128 4100 2886 4159 \n",
       "Q 2644 4219 2406 4219 \n",
       "Q 1781 4219 1451 3797 \n",
       "Q 1122 3375 1075 2522 \n",
       "Q 1259 2794 1537 2939 \n",
       "Q 1816 3084 2150 3084 \n",
       "Q 2853 3084 3261 2657 \n",
       "Q 3669 2231 3669 1497 \n",
       "Q 3669 778 3244 343 \n",
       "Q 2819 -91 2113 -91 \n",
       "Q 1303 -91 875 529 \n",
       "Q 447 1150 447 2328 \n",
       "Q 447 3434 972 4092 \n",
       "Q 1497 4750 2381 4750 \n",
       "Q 2619 4750 2861 4703 \n",
       "Q 3103 4656 3366 4563 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-36\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_2\">\n",
       "     <g id=\"line2d_2\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0a13afd8ed\" x=\"161.281051\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_2\">\n",
       "      <!-- 2017 -->\n",
       "      <g transform=\"translate(164.040426 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-37\" d=\"M 525 4666 \n",
       "L 3525 4666 \n",
       "L 3525 4397 \n",
       "L 1831 0 \n",
       "L 1172 0 \n",
       "L 2766 4134 \n",
       "L 525 4134 \n",
       "L 525 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-37\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_3\">\n",
       "     <g id=\"line2d_3\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0a13afd8ed\" x=\"262.680036\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_3\">\n",
       "      <!-- 2018 -->\n",
       "      <g transform=\"translate(265.439411 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-38\" d=\"M 2034 2216 \n",
       "Q 1584 2216 1326 1975 \n",
       "Q 1069 1734 1069 1313 \n",
       "Q 1069 891 1326 650 \n",
       "Q 1584 409 2034 409 \n",
       "Q 2484 409 2743 651 \n",
       "Q 3003 894 3003 1313 \n",
       "Q 3003 1734 2745 1975 \n",
       "Q 2488 2216 2034 2216 \n",
       "z\n",
       "M 1403 2484 \n",
       "Q 997 2584 770 2862 \n",
       "Q 544 3141 544 3541 \n",
       "Q 544 4100 942 4425 \n",
       "Q 1341 4750 2034 4750 \n",
       "Q 2731 4750 3128 4425 \n",
       "Q 3525 4100 3525 3541 \n",
       "Q 3525 3141 3298 2862 \n",
       "Q 3072 2584 2669 2484 \n",
       "Q 3125 2378 3379 2068 \n",
       "Q 3634 1759 3634 1313 \n",
       "Q 3634 634 3220 271 \n",
       "Q 2806 -91 2034 -91 \n",
       "Q 1263 -91 848 271 \n",
       "Q 434 634 434 1313 \n",
       "Q 434 1759 690 2068 \n",
       "Q 947 2378 1403 2484 \n",
       "z\n",
       "M 1172 3481 \n",
       "Q 1172 3119 1398 2916 \n",
       "Q 1625 2713 2034 2713 \n",
       "Q 2441 2713 2670 2916 \n",
       "Q 2900 3119 2900 3481 \n",
       "Q 2900 3844 2670 4047 \n",
       "Q 2441 4250 2034 4250 \n",
       "Q 1625 4250 1398 4047 \n",
       "Q 1172 3844 1172 3481 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-38\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_4\">\n",
       "     <g id=\"line2d_4\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0a13afd8ed\" x=\"364.07902\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_4\">\n",
       "      <!-- 2019 -->\n",
       "      <g transform=\"translate(366.838395 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-39\" d=\"M 703 97 \n",
       "L 703 672 \n",
       "Q 941 559 1184 500 \n",
       "Q 1428 441 1663 441 \n",
       "Q 2288 441 2617 861 \n",
       "Q 2947 1281 2994 2138 \n",
       "Q 2813 1869 2534 1725 \n",
       "Q 2256 1581 1919 1581 \n",
       "Q 1219 1581 811 2004 \n",
       "Q 403 2428 403 3163 \n",
       "Q 403 3881 828 4315 \n",
       "Q 1253 4750 1959 4750 \n",
       "Q 2769 4750 3195 4129 \n",
       "Q 3622 3509 3622 2328 \n",
       "Q 3622 1225 3098 567 \n",
       "Q 2575 -91 1691 -91 \n",
       "Q 1453 -91 1209 -44 \n",
       "Q 966 3 703 97 \n",
       "z\n",
       "M 1959 2075 \n",
       "Q 2384 2075 2632 2365 \n",
       "Q 2881 2656 2881 3163 \n",
       "Q 2881 3666 2632 3958 \n",
       "Q 2384 4250 1959 4250 \n",
       "Q 1534 4250 1286 3958 \n",
       "Q 1038 3666 1038 3163 \n",
       "Q 1038 2656 1286 2365 \n",
       "Q 1534 2075 1959 2075 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-39\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_5\">\n",
       "     <g id=\"line2d_5\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0a13afd8ed\" x=\"465.478004\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_5\">\n",
       "      <!-- 2020 -->\n",
       "      <g transform=\"translate(468.237379 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_6\">\n",
       "     <g id=\"line2d_6\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0a13afd8ed\" x=\"567.154794\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_6\">\n",
       "      <!-- 2021 -->\n",
       "      <g transform=\"translate(569.914169 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_7\">\n",
       "     <!-- time -->\n",
       "     <g transform=\"translate(301.944531 343.566563)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-74\" d=\"M 1172 4494 \n",
       "L 1172 3500 \n",
       "L 2356 3500 \n",
       "L 2356 3053 \n",
       "L 1172 3053 \n",
       "L 1172 1153 \n",
       "Q 1172 725 1289 603 \n",
       "Q 1406 481 1766 481 \n",
       "L 2356 481 \n",
       "L 2356 0 \n",
       "L 1766 0 \n",
       "Q 1100 0 847 248 \n",
       "Q 594 497 594 1153 \n",
       "L 594 3053 \n",
       "L 172 3053 \n",
       "L 172 3500 \n",
       "L 594 3500 \n",
       "L 594 4494 \n",
       "L 1172 4494 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-69\" d=\"M 603 3500 \n",
       "L 1178 3500 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 3500 \n",
       "z\n",
       "M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 4134 \n",
       "L 603 4134 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6d\" d=\"M 3328 2828 \n",
       "Q 3544 3216 3844 3400 \n",
       "Q 4144 3584 4550 3584 \n",
       "Q 5097 3584 5394 3201 \n",
       "Q 5691 2819 5691 2113 \n",
       "L 5691 0 \n",
       "L 5113 0 \n",
       "L 5113 2094 \n",
       "Q 5113 2597 4934 2840 \n",
       "Q 4756 3084 4391 3084 \n",
       "Q 3944 3084 3684 2787 \n",
       "Q 3425 2491 3425 1978 \n",
       "L 3425 0 \n",
       "L 2847 0 \n",
       "L 2847 2094 \n",
       "Q 2847 2600 2669 2842 \n",
       "Q 2491 3084 2119 3084 \n",
       "Q 1678 3084 1418 2786 \n",
       "Q 1159 2488 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1356 3278 1631 3431 \n",
       "Q 1906 3584 2284 3584 \n",
       "Q 2666 3584 2933 3390 \n",
       "Q 3200 3197 3328 2828 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-65\" d=\"M 3597 1894 \n",
       "L 3597 1613 \n",
       "L 953 1613 \n",
       "Q 991 1019 1311 708 \n",
       "Q 1631 397 2203 397 \n",
       "Q 2534 397 2845 478 \n",
       "Q 3156 559 3463 722 \n",
       "L 3463 178 \n",
       "Q 3153 47 2828 -22 \n",
       "Q 2503 -91 2169 -91 \n",
       "Q 1331 -91 842 396 \n",
       "Q 353 884 353 1716 \n",
       "Q 353 2575 817 3079 \n",
       "Q 1281 3584 2069 3584 \n",
       "Q 2775 3584 3186 3129 \n",
       "Q 3597 2675 3597 1894 \n",
       "z\n",
       "M 3022 2063 \n",
       "Q 3016 2534 2758 2815 \n",
       "Q 2500 3097 2075 3097 \n",
       "Q 1594 3097 1305 2825 \n",
       "Q 1016 2553 972 2059 \n",
       "L 3022 2063 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-74\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"39.208984\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"66.992188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"164.404297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_2\">\n",
       "    <g id=\"ytick_1\">\n",
       "     <g id=\"line2d_7\">\n",
       "      <defs>\n",
       "       <path id=\"m4d338ef48a\" d=\"M 0 0 \n",
       "L -3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m4d338ef48a\" x=\"34.240625\" y=\"271.1061\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_8\">\n",
       "      <!-- 2 -->\n",
       "      <g transform=\"translate(20.878125 274.905319)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_8\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m4d338ef48a\" x=\"34.240625\" y=\"234.888046\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_9\">\n",
       "      <!-- 3 -->\n",
       "      <g transform=\"translate(20.878125 238.687265)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-33\" d=\"M 2597 2516 \n",
       "Q 3050 2419 3304 2112 \n",
       "Q 3559 1806 3559 1356 \n",
       "Q 3559 666 3084 287 \n",
       "Q 2609 -91 1734 -91 \n",
       "Q 1441 -91 1130 -33 \n",
       "Q 819 25 488 141 \n",
       "L 488 750 \n",
       "Q 750 597 1062 519 \n",
       "Q 1375 441 1716 441 \n",
       "Q 2309 441 2620 675 \n",
       "Q 2931 909 2931 1356 \n",
       "Q 2931 1769 2642 2001 \n",
       "Q 2353 2234 1838 2234 \n",
       "L 1294 2234 \n",
       "L 1294 2753 \n",
       "L 1863 2753 \n",
       "Q 2328 2753 2575 2939 \n",
       "Q 2822 3125 2822 3475 \n",
       "Q 2822 3834 2567 4026 \n",
       "Q 2313 4219 1838 4219 \n",
       "Q 1578 4219 1281 4162 \n",
       "Q 984 4106 628 3988 \n",
       "L 628 4550 \n",
       "Q 988 4650 1302 4700 \n",
       "Q 1616 4750 1894 4750 \n",
       "Q 2613 4750 3031 4423 \n",
       "Q 3450 4097 3450 3541 \n",
       "Q 3450 3153 3228 2886 \n",
       "Q 3006 2619 2597 2516 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_9\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m4d338ef48a\" x=\"34.240625\" y=\"198.669992\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_10\">\n",
       "      <!-- 4 -->\n",
       "      <g transform=\"translate(20.878125 202.469211)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-34\" d=\"M 2419 4116 \n",
       "L 825 1625 \n",
       "L 2419 1625 \n",
       "L 2419 4116 \n",
       "z\n",
       "M 2253 4666 \n",
       "L 3047 4666 \n",
       "L 3047 1625 \n",
       "L 3713 1625 \n",
       "L 3713 1100 \n",
       "L 3047 1100 \n",
       "L 3047 0 \n",
       "L 2419 0 \n",
       "L 2419 1100 \n",
       "L 313 1100 \n",
       "L 313 1709 \n",
       "L 2253 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-34\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_10\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m4d338ef48a\" x=\"34.240625\" y=\"162.451938\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_11\">\n",
       "      <!-- 5 -->\n",
       "      <g transform=\"translate(20.878125 166.251157)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-35\" d=\"M 691 4666 \n",
       "L 3169 4666 \n",
       "L 3169 4134 \n",
       "L 1269 4134 \n",
       "L 1269 2991 \n",
       "Q 1406 3038 1543 3061 \n",
       "Q 1681 3084 1819 3084 \n",
       "Q 2600 3084 3056 2656 \n",
       "Q 3513 2228 3513 1497 \n",
       "Q 3513 744 3044 326 \n",
       "Q 2575 -91 1722 -91 \n",
       "Q 1428 -91 1123 -41 \n",
       "Q 819 9 494 109 \n",
       "L 494 744 \n",
       "Q 775 591 1075 516 \n",
       "Q 1375 441 1709 441 \n",
       "Q 2250 441 2565 725 \n",
       "Q 2881 1009 2881 1497 \n",
       "Q 2881 1984 2565 2268 \n",
       "Q 2250 2553 1709 2553 \n",
       "Q 1456 2553 1204 2497 \n",
       "Q 953 2441 691 2322 \n",
       "L 691 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-35\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_5\">\n",
       "     <g id=\"line2d_11\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m4d338ef48a\" x=\"34.240625\" y=\"126.233884\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_12\">\n",
       "      <!-- 6 -->\n",
       "      <g transform=\"translate(20.878125 130.033102)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-36\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_6\">\n",
       "     <g id=\"line2d_12\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m4d338ef48a\" x=\"34.240625\" y=\"90.01583\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_13\">\n",
       "      <!-- 7 -->\n",
       "      <g transform=\"translate(20.878125 93.815048)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-37\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_7\">\n",
       "     <g id=\"line2d_13\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m4d338ef48a\" x=\"34.240625\" y=\"53.797775\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_14\">\n",
       "      <!-- 8 -->\n",
       "      <g transform=\"translate(20.878125 57.596994)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-38\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_15\">\n",
       "     <!-- revenue -->\n",
       "     <g transform=\"translate(14.798437 181.387656)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-72\" d=\"M 2631 2963 \n",
       "Q 2534 3019 2420 3045 \n",
       "Q 2306 3072 2169 3072 \n",
       "Q 1681 3072 1420 2755 \n",
       "Q 1159 2438 1159 1844 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1341 3275 1631 3429 \n",
       "Q 1922 3584 2338 3584 \n",
       "Q 2397 3584 2469 3576 \n",
       "Q 2541 3569 2628 3553 \n",
       "L 2631 2963 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-76\" d=\"M 191 3500 \n",
       "L 800 3500 \n",
       "L 1894 563 \n",
       "L 2988 3500 \n",
       "L 3597 3500 \n",
       "L 2284 0 \n",
       "L 1503 0 \n",
       "L 191 3500 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6e\" d=\"M 3513 2113 \n",
       "L 3513 0 \n",
       "L 2938 0 \n",
       "L 2938 2094 \n",
       "Q 2938 2591 2744 2837 \n",
       "Q 2550 3084 2163 3084 \n",
       "Q 1697 3084 1428 2787 \n",
       "Q 1159 2491 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1366 3272 1645 3428 \n",
       "Q 1925 3584 2291 3584 \n",
       "Q 2894 3584 3203 3211 \n",
       "Q 3513 2838 3513 2113 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-75\" d=\"M 544 1381 \n",
       "L 544 3500 \n",
       "L 1119 3500 \n",
       "L 1119 1403 \n",
       "Q 1119 906 1312 657 \n",
       "Q 1506 409 1894 409 \n",
       "Q 2359 409 2629 706 \n",
       "Q 2900 1003 2900 1516 \n",
       "L 2900 3500 \n",
       "L 3475 3500 \n",
       "L 3475 0 \n",
       "L 2900 0 \n",
       "L 2900 538 \n",
       "Q 2691 219 2414 64 \n",
       "Q 2138 -91 1772 -91 \n",
       "Q 1169 -91 856 284 \n",
       "Q 544 659 544 1381 \n",
       "z\n",
       "M 1991 3584 \n",
       "L 1991 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_16\">\n",
       "     <!-- 1e7 -->\n",
       "     <g transform=\"translate(34.240625 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-37\" x=\"125.146484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_14\">\n",
       "    <path d=\"M 84.606751 264.479403 \n",
       "L 109.887045 280.389731 \n",
       "L 135.445146 286.918125 \n",
       "L 161.003246 257.008603 \n",
       "L 186.005735 259.589465 \n",
       "L 211.28603 282.699924 \n",
       "L 236.84413 260.982649 \n",
       "L 262.40223 159.468735 \n",
       "L 287.404719 61.508619 \n",
       "L 312.685014 212.518204 \n",
       "L 338.243114 226.267285 \n",
       "L 363.801214 148.173703 \n",
       "L 388.803704 78.883033 \n",
       "L 414.083998 189.190877 \n",
       "L 439.642099 208.050784 \n",
       "L 465.200199 109.211571 \n",
       "L 490.480494 34.918125 \n",
       "L 515.760788 162.715456 \n",
       "L 541.318888 283.444357 \n",
       "\" clip-path=\"url(#p8e3fa01150)\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 34.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 592.240625 299.518125 \n",
       "L 592.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_5\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 592.240625 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_6\">\n",
       "    <path d=\"M 34.240625 22.318125 \n",
       "L 592.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_17\">\n",
       "    <!-- revenue -->\n",
       "    <g transform=\"translate(288.677188 16.318125)scale(0.12 -0.12)\">\n",
       "     <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       "  <g id=\"axes_2\">\n",
       "   <g id=\"matplotlib.axis_3\">\n",
       "    <g id=\"ytick_8\">\n",
       "     <g id=\"line2d_15\">\n",
       "      <defs>\n",
       "       <path id=\"m09aec48e1e\" d=\"M 0 0 \n",
       "L 3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m09aec48e1e\" x=\"592.240625\" y=\"275.664471\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_18\">\n",
       "      <!-- 1 -->\n",
       "      <g transform=\"translate(599.240625 279.463689)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_9\">\n",
       "     <g id=\"line2d_16\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m09aec48e1e\" x=\"592.240625\" y=\"219.537336\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_19\">\n",
       "      <!-- 2 -->\n",
       "      <g transform=\"translate(599.240625 223.336555)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_10\">\n",
       "     <g id=\"line2d_17\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m09aec48e1e\" x=\"592.240625\" y=\"163.410202\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_20\">\n",
       "      <!-- 3 -->\n",
       "      <g transform=\"translate(599.240625 167.20942)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_11\">\n",
       "     <g id=\"line2d_18\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m09aec48e1e\" x=\"592.240625\" y=\"107.283067\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_21\">\n",
       "      <!-- 4 -->\n",
       "      <g transform=\"translate(599.240625 111.082286)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-34\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_12\">\n",
       "     <g id=\"line2d_19\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m09aec48e1e\" x=\"592.240625\" y=\"51.155932\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_22\">\n",
       "      <!-- 5 -->\n",
       "      <g transform=\"translate(599.240625 54.955151)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-35\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_23\">\n",
       "     <!-- csmar -->\n",
       "     <g transform=\"translate(617.201563 176.261875)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-63\" d=\"M 3122 3366 \n",
       "L 3122 2828 \n",
       "Q 2878 2963 2633 3030 \n",
       "Q 2388 3097 2138 3097 \n",
       "Q 1578 3097 1268 2742 \n",
       "Q 959 2388 959 1747 \n",
       "Q 959 1106 1268 751 \n",
       "Q 1578 397 2138 397 \n",
       "Q 2388 397 2633 464 \n",
       "Q 2878 531 3122 666 \n",
       "L 3122 134 \n",
       "Q 2881 22 2623 -34 \n",
       "Q 2366 -91 2075 -91 \n",
       "Q 1284 -91 818 406 \n",
       "Q 353 903 353 1747 \n",
       "Q 353 2603 823 3093 \n",
       "Q 1294 3584 2113 3584 \n",
       "Q 2378 3584 2631 3529 \n",
       "Q 2884 3475 3122 3366 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-73\" d=\"M 2834 3397 \n",
       "L 2834 2853 \n",
       "Q 2591 2978 2328 3040 \n",
       "Q 2066 3103 1784 3103 \n",
       "Q 1356 3103 1142 2972 \n",
       "Q 928 2841 928 2578 \n",
       "Q 928 2378 1081 2264 \n",
       "Q 1234 2150 1697 2047 \n",
       "L 1894 2003 \n",
       "Q 2506 1872 2764 1633 \n",
       "Q 3022 1394 3022 966 \n",
       "Q 3022 478 2636 193 \n",
       "Q 2250 -91 1575 -91 \n",
       "Q 1294 -91 989 -36 \n",
       "Q 684 19 347 128 \n",
       "L 347 722 \n",
       "Q 666 556 975 473 \n",
       "Q 1284 391 1588 391 \n",
       "Q 1994 391 2212 530 \n",
       "Q 2431 669 2431 922 \n",
       "Q 2431 1156 2273 1281 \n",
       "Q 2116 1406 1581 1522 \n",
       "L 1381 1569 \n",
       "Q 847 1681 609 1914 \n",
       "Q 372 2147 372 2553 \n",
       "Q 372 3047 722 3315 \n",
       "Q 1072 3584 1716 3584 \n",
       "Q 2034 3584 2315 3537 \n",
       "Q 2597 3491 2834 3397 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-61\" d=\"M 2194 1759 \n",
       "Q 1497 1759 1228 1600 \n",
       "Q 959 1441 959 1056 \n",
       "Q 959 750 1161 570 \n",
       "Q 1363 391 1709 391 \n",
       "Q 2188 391 2477 730 \n",
       "Q 2766 1069 2766 1631 \n",
       "L 2766 1759 \n",
       "L 2194 1759 \n",
       "z\n",
       "M 3341 1997 \n",
       "L 3341 0 \n",
       "L 2766 0 \n",
       "L 2766 531 \n",
       "Q 2569 213 2275 61 \n",
       "Q 1981 -91 1556 -91 \n",
       "Q 1019 -91 701 211 \n",
       "Q 384 513 384 1019 \n",
       "Q 384 1609 779 1909 \n",
       "Q 1175 2209 1959 2209 \n",
       "L 2766 2209 \n",
       "L 2766 2266 \n",
       "Q 2766 2663 2505 2880 \n",
       "Q 2244 3097 1772 3097 \n",
       "Q 1472 3097 1187 3025 \n",
       "Q 903 2953 641 2809 \n",
       "L 641 3341 \n",
       "Q 956 3463 1253 3523 \n",
       "Q 1550 3584 1831 3584 \n",
       "Q 2591 3584 2966 3190 \n",
       "Q 3341 2797 3341 1997 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_24\">\n",
       "     <!-- 1e9 -->\n",
       "     <g transform=\"translate(573.3625 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-39\" x=\"125.146484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_20\">\n",
       "    <path d=\"M 59.604261 145.933751 \n",
       "L 84.606751 283.474262 \n",
       "L 109.887045 238.853608 \n",
       "L 135.445146 189.668831 \n",
       "L 161.003246 134.616317 \n",
       "L 161.281051 134.616317 \n",
       "L 186.005735 286.918125 \n",
       "L 211.28603 241.980099 \n",
       "L 236.84413 190.914586 \n",
       "L 262.40223 129.580235 \n",
       "L 262.680036 129.580235 \n",
       "L 287.404719 274.155151 \n",
       "L 312.685014 226.58524 \n",
       "L 338.243114 168.482692 \n",
       "L 363.801214 96.223464 \n",
       "L 364.07902 96.223464 \n",
       "L 388.803704 273.427675 \n",
       "L 414.083998 220.254183 \n",
       "L 439.642099 151.108524 \n",
       "L 465.200199 60.290495 \n",
       "L 465.478004 60.290495 \n",
       "L 490.480494 267.420487 \n",
       "L 515.760788 203.008854 \n",
       "L 541.318888 126.874945 \n",
       "L 566.876989 34.918125 \n",
       "\" clip-path=\"url(#p8e3fa01150)\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_7\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 34.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_8\">\n",
       "    <path d=\"M 592.240625 299.518125 \n",
       "L 592.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_9\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 592.240625 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_10\">\n",
       "    <path d=\"M 34.240625 22.318125 \n",
       "L 592.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"legend_1\">\n",
       "    <g id=\"patch_11\">\n",
       "     <path d=\"M 41.240625 59.674375 \n",
       "L 126.278125 59.674375 \n",
       "Q 128.278125 59.674375 128.278125 57.674375 \n",
       "L 128.278125 29.318125 \n",
       "Q 128.278125 27.318125 126.278125 27.318125 \n",
       "L 41.240625 27.318125 \n",
       "Q 39.240625 27.318125 39.240625 29.318125 \n",
       "L 39.240625 57.674375 \n",
       "Q 39.240625 59.674375 41.240625 59.674375 \n",
       "z\n",
       "\" style=\"fill: #ffffff; opacity: 0.8; stroke: #cccccc; stroke-linejoin: miter\"/>\n",
       "    </g>\n",
       "    <g id=\"line2d_21\">\n",
       "     <path d=\"M 43.240625 35.416562 \n",
       "L 53.240625 35.416562 \n",
       "L 63.240625 35.416562 \n",
       "\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_25\">\n",
       "     <!-- onlinedata -->\n",
       "     <g transform=\"translate(71.240625 38.916562)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-6f\" d=\"M 1959 3097 \n",
       "Q 1497 3097 1228 2736 \n",
       "Q 959 2375 959 1747 \n",
       "Q 959 1119 1226 758 \n",
       "Q 1494 397 1959 397 \n",
       "Q 2419 397 2687 759 \n",
       "Q 2956 1122 2956 1747 \n",
       "Q 2956 2369 2687 2733 \n",
       "Q 2419 3097 1959 3097 \n",
       "z\n",
       "M 1959 3584 \n",
       "Q 2709 3584 3137 3096 \n",
       "Q 3566 2609 3566 1747 \n",
       "Q 3566 888 3137 398 \n",
       "Q 2709 -91 1959 -91 \n",
       "Q 1206 -91 779 398 \n",
       "Q 353 888 353 1747 \n",
       "Q 353 2609 779 3096 \n",
       "Q 1206 3584 1959 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6c\" d=\"M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-64\" d=\"M 2906 2969 \n",
       "L 2906 4863 \n",
       "L 3481 4863 \n",
       "L 3481 0 \n",
       "L 2906 0 \n",
       "L 2906 525 \n",
       "Q 2725 213 2448 61 \n",
       "Q 2172 -91 1784 -91 \n",
       "Q 1150 -91 751 415 \n",
       "Q 353 922 353 1747 \n",
       "Q 353 2572 751 3078 \n",
       "Q 1150 3584 1784 3584 \n",
       "Q 2172 3584 2448 3432 \n",
       "Q 2725 3281 2906 2969 \n",
       "z\n",
       "M 947 1747 \n",
       "Q 947 1113 1208 752 \n",
       "Q 1469 391 1925 391 \n",
       "Q 2381 391 2643 752 \n",
       "Q 2906 1113 2906 1747 \n",
       "Q 2906 2381 2643 2742 \n",
       "Q 2381 3103 1925 3103 \n",
       "Q 1469 3103 1208 2742 \n",
       "Q 947 2381 947 1747 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-6f\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"61.181641\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6c\" x=\"124.560547\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"152.34375\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"180.126953\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"243.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.029297\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.785156\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"468.994141\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_22\">\n",
       "     <path d=\"M 43.240625 50.094688 \n",
       "L 53.240625 50.094688 \n",
       "L 63.240625 50.094688 \n",
       "\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_26\">\n",
       "     <!-- csmardata -->\n",
       "     <g transform=\"translate(71.240625 53.594688)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.134766\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.611328\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.890625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"469.099609\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       " </g>\n",
       " <defs>\n",
       "  <clipPath id=\"p8e3fa01150\">\n",
       "   <rect x=\"34.240625\" y=\"22.318125\" width=\"558\" height=\"277.2\"/>\n",
       "  </clipPath>\n",
       " </defs>\n",
       "</svg>\n"
      ],
      "text/plain": [
       "<Figure size 1000x500 with 2 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig = plt.figure(figsize=(10, 5))\n",
    "ax1 = fig.add_subplot(1, 1, 1)  #(x, x, x)这里前两个表示几*几的网格，最后一个表示第几子图\n",
    "ax1.plot(Qdata2['洽洽食品（002557.SZ）'],color='red',label='onlinedata')\n",
    "ax1.set_xlabel('time')  # 设置横坐标标签\n",
    "ax1.set_ylabel('revenue')  # 设置左边纵坐标标签\n",
    "ax1.set_title(\"revenue\")  # 给整张图命名\n",
    "data_format = mdates.DateFormatter('%Y')\n",
    "ax1.xaxis.set_major_formatter(data_format)\n",
    "ax1.xaxis.set_major_locator(mdates.YearLocator())\n",
    "plt.xticks(rotation = 90)\n",
    "ax2 = ax1.twinx()  #twinx()函数表示共享x轴\n",
    "ax2.plot(finaldata['洽洽食品'],color='blue',label='csmardata')\n",
    "ax2.set_ylabel('csmar')  # 设置右边纵坐标标签\n",
    "lines, labels = ax1.get_legend_handles_labels()\n",
    "lines2, labels2 = ax2.get_legend_handles_labels()\n",
    "ax2.legend(lines + lines2, labels + labels2, loc='upper left')\n",
    "fig = plt.gcf()\n",
    "fig.savefig('洽洽食品.pdf', bbox_inches='tight')\n",
    "plt.show();"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
       "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"645.5625pt\" height=\"352.84625pt\" viewBox=\"0 0 645.5625 352.84625\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">\n",
       " <metadata>\n",
       "  <rdf:RDF xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n",
       "   <cc:Work>\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\n",
       "    <dc:date>2024-12-19T16:29:27.268633</dc:date>\n",
       "    <dc:format>image/svg+xml</dc:format>\n",
       "    <dc:creator>\n",
       "     <cc:Agent>\n",
       "      <dc:title>Matplotlib v3.5.2, https://matplotlib.org/</dc:title>\n",
       "     </cc:Agent>\n",
       "    </dc:creator>\n",
       "   </cc:Work>\n",
       "  </rdf:RDF>\n",
       " </metadata>\n",
       " <defs>\n",
       "  <style type=\"text/css\">*{stroke-linejoin: round; stroke-linecap: butt}</style>\n",
       " </defs>\n",
       " <g id=\"figure_1\">\n",
       "  <g id=\"patch_1\">\n",
       "   <path d=\"M 0 352.84625 \n",
       "L 645.5625 352.84625 \n",
       "L 645.5625 0 \n",
       "L 0 0 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "  </g>\n",
       "  <g id=\"axes_1\">\n",
       "   <g id=\"patch_2\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 601.78125 299.518125 \n",
       "L 601.78125 22.318125 \n",
       "L 43.78125 22.318125 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_1\">\n",
       "    <g id=\"xtick_1\">\n",
       "     <g id=\"line2d_1\">\n",
       "      <defs>\n",
       "       <path id=\"m8dd70a1c81\" d=\"M 0 0 \n",
       "L 0 3.5 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m8dd70a1c81\" x=\"149.794237\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_1\">\n",
       "      <!-- 2017 -->\n",
       "      <g transform=\"translate(152.553612 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-32\" d=\"M 1228 531 \n",
       "L 3431 531 \n",
       "L 3431 0 \n",
       "L 469 0 \n",
       "L 469 531 \n",
       "Q 828 903 1448 1529 \n",
       "Q 2069 2156 2228 2338 \n",
       "Q 2531 2678 2651 2914 \n",
       "Q 2772 3150 2772 3378 \n",
       "Q 2772 3750 2511 3984 \n",
       "Q 2250 4219 1831 4219 \n",
       "Q 1534 4219 1204 4116 \n",
       "Q 875 4013 500 3803 \n",
       "L 500 4441 \n",
       "Q 881 4594 1212 4672 \n",
       "Q 1544 4750 1819 4750 \n",
       "Q 2544 4750 2975 4387 \n",
       "Q 3406 4025 3406 3419 \n",
       "Q 3406 3131 3298 2873 \n",
       "Q 3191 2616 2906 2266 \n",
       "Q 2828 2175 2409 1742 \n",
       "Q 1991 1309 1228 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-30\" d=\"M 2034 4250 \n",
       "Q 1547 4250 1301 3770 \n",
       "Q 1056 3291 1056 2328 \n",
       "Q 1056 1369 1301 889 \n",
       "Q 1547 409 2034 409 \n",
       "Q 2525 409 2770 889 \n",
       "Q 3016 1369 3016 2328 \n",
       "Q 3016 3291 2770 3770 \n",
       "Q 2525 4250 2034 4250 \n",
       "z\n",
       "M 2034 4750 \n",
       "Q 2819 4750 3233 4129 \n",
       "Q 3647 3509 3647 2328 \n",
       "Q 3647 1150 3233 529 \n",
       "Q 2819 -91 2034 -91 \n",
       "Q 1250 -91 836 529 \n",
       "Q 422 1150 422 2328 \n",
       "Q 422 3509 836 4129 \n",
       "Q 1250 4750 2034 4750 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-31\" d=\"M 794 531 \n",
       "L 1825 531 \n",
       "L 1825 4091 \n",
       "L 703 3866 \n",
       "L 703 4441 \n",
       "L 1819 4666 \n",
       "L 2450 4666 \n",
       "L 2450 531 \n",
       "L 3481 531 \n",
       "L 3481 0 \n",
       "L 794 0 \n",
       "L 794 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-37\" d=\"M 525 4666 \n",
       "L 3525 4666 \n",
       "L 3525 4397 \n",
       "L 1831 0 \n",
       "L 1172 0 \n",
       "L 2766 4134 \n",
       "L 525 4134 \n",
       "L 525 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-37\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_2\">\n",
       "     <g id=\"line2d_2\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m8dd70a1c81\" x=\"256.450081\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_2\">\n",
       "      <!-- 2018 -->\n",
       "      <g transform=\"translate(259.209456 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-38\" d=\"M 2034 2216 \n",
       "Q 1584 2216 1326 1975 \n",
       "Q 1069 1734 1069 1313 \n",
       "Q 1069 891 1326 650 \n",
       "Q 1584 409 2034 409 \n",
       "Q 2484 409 2743 651 \n",
       "Q 3003 894 3003 1313 \n",
       "Q 3003 1734 2745 1975 \n",
       "Q 2488 2216 2034 2216 \n",
       "z\n",
       "M 1403 2484 \n",
       "Q 997 2584 770 2862 \n",
       "Q 544 3141 544 3541 \n",
       "Q 544 4100 942 4425 \n",
       "Q 1341 4750 2034 4750 \n",
       "Q 2731 4750 3128 4425 \n",
       "Q 3525 4100 3525 3541 \n",
       "Q 3525 3141 3298 2862 \n",
       "Q 3072 2584 2669 2484 \n",
       "Q 3125 2378 3379 2068 \n",
       "Q 3634 1759 3634 1313 \n",
       "Q 3634 634 3220 271 \n",
       "Q 2806 -91 2034 -91 \n",
       "Q 1263 -91 848 271 \n",
       "Q 434 634 434 1313 \n",
       "Q 434 1759 690 2068 \n",
       "Q 947 2378 1403 2484 \n",
       "z\n",
       "M 1172 3481 \n",
       "Q 1172 3119 1398 2916 \n",
       "Q 1625 2713 2034 2713 \n",
       "Q 2441 2713 2670 2916 \n",
       "Q 2900 3119 2900 3481 \n",
       "Q 2900 3844 2670 4047 \n",
       "Q 2441 4250 2034 4250 \n",
       "Q 1625 4250 1398 4047 \n",
       "Q 1172 3844 1172 3481 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-38\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_3\">\n",
       "     <g id=\"line2d_3\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m8dd70a1c81\" x=\"363.105925\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_3\">\n",
       "      <!-- 2019 -->\n",
       "      <g transform=\"translate(365.8653 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-39\" d=\"M 703 97 \n",
       "L 703 672 \n",
       "Q 941 559 1184 500 \n",
       "Q 1428 441 1663 441 \n",
       "Q 2288 441 2617 861 \n",
       "Q 2947 1281 2994 2138 \n",
       "Q 2813 1869 2534 1725 \n",
       "Q 2256 1581 1919 1581 \n",
       "Q 1219 1581 811 2004 \n",
       "Q 403 2428 403 3163 \n",
       "Q 403 3881 828 4315 \n",
       "Q 1253 4750 1959 4750 \n",
       "Q 2769 4750 3195 4129 \n",
       "Q 3622 3509 3622 2328 \n",
       "Q 3622 1225 3098 567 \n",
       "Q 2575 -91 1691 -91 \n",
       "Q 1453 -91 1209 -44 \n",
       "Q 966 3 703 97 \n",
       "z\n",
       "M 1959 2075 \n",
       "Q 2384 2075 2632 2365 \n",
       "Q 2881 2656 2881 3163 \n",
       "Q 2881 3666 2632 3958 \n",
       "Q 2384 4250 1959 4250 \n",
       "Q 1534 4250 1286 3958 \n",
       "Q 1038 3666 1038 3163 \n",
       "Q 1038 2656 1286 2365 \n",
       "Q 1534 2075 1959 2075 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-39\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_4\">\n",
       "     <g id=\"line2d_4\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m8dd70a1c81\" x=\"469.761769\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_4\">\n",
       "      <!-- 2020 -->\n",
       "      <g transform=\"translate(472.521144 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_5\">\n",
       "     <g id=\"line2d_5\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m8dd70a1c81\" x=\"576.709821\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_5\">\n",
       "      <!-- 2021 -->\n",
       "      <g transform=\"translate(579.469196 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_6\">\n",
       "     <!-- time -->\n",
       "     <g transform=\"translate(311.485156 343.566563)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-74\" d=\"M 1172 4494 \n",
       "L 1172 3500 \n",
       "L 2356 3500 \n",
       "L 2356 3053 \n",
       "L 1172 3053 \n",
       "L 1172 1153 \n",
       "Q 1172 725 1289 603 \n",
       "Q 1406 481 1766 481 \n",
       "L 2356 481 \n",
       "L 2356 0 \n",
       "L 1766 0 \n",
       "Q 1100 0 847 248 \n",
       "Q 594 497 594 1153 \n",
       "L 594 3053 \n",
       "L 172 3053 \n",
       "L 172 3500 \n",
       "L 594 3500 \n",
       "L 594 4494 \n",
       "L 1172 4494 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-69\" d=\"M 603 3500 \n",
       "L 1178 3500 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 3500 \n",
       "z\n",
       "M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 4134 \n",
       "L 603 4134 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6d\" d=\"M 3328 2828 \n",
       "Q 3544 3216 3844 3400 \n",
       "Q 4144 3584 4550 3584 \n",
       "Q 5097 3584 5394 3201 \n",
       "Q 5691 2819 5691 2113 \n",
       "L 5691 0 \n",
       "L 5113 0 \n",
       "L 5113 2094 \n",
       "Q 5113 2597 4934 2840 \n",
       "Q 4756 3084 4391 3084 \n",
       "Q 3944 3084 3684 2787 \n",
       "Q 3425 2491 3425 1978 \n",
       "L 3425 0 \n",
       "L 2847 0 \n",
       "L 2847 2094 \n",
       "Q 2847 2600 2669 2842 \n",
       "Q 2491 3084 2119 3084 \n",
       "Q 1678 3084 1418 2786 \n",
       "Q 1159 2488 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1356 3278 1631 3431 \n",
       "Q 1906 3584 2284 3584 \n",
       "Q 2666 3584 2933 3390 \n",
       "Q 3200 3197 3328 2828 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-65\" d=\"M 3597 1894 \n",
       "L 3597 1613 \n",
       "L 953 1613 \n",
       "Q 991 1019 1311 708 \n",
       "Q 1631 397 2203 397 \n",
       "Q 2534 397 2845 478 \n",
       "Q 3156 559 3463 722 \n",
       "L 3463 178 \n",
       "Q 3153 47 2828 -22 \n",
       "Q 2503 -91 2169 -91 \n",
       "Q 1331 -91 842 396 \n",
       "Q 353 884 353 1716 \n",
       "Q 353 2575 817 3079 \n",
       "Q 1281 3584 2069 3584 \n",
       "Q 2775 3584 3186 3129 \n",
       "Q 3597 2675 3597 1894 \n",
       "z\n",
       "M 3022 2063 \n",
       "Q 3016 2534 2758 2815 \n",
       "Q 2500 3097 2075 3097 \n",
       "Q 1594 3097 1305 2825 \n",
       "Q 1016 2553 972 2059 \n",
       "L 3022 2063 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-74\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"39.208984\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"66.992188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"164.404297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_2\">\n",
       "    <g id=\"ytick_1\">\n",
       "     <g id=\"line2d_6\">\n",
       "      <defs>\n",
       "       <path id=\"m8589aa2c09\" d=\"M 0 0 \n",
       "L -3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m8589aa2c09\" x=\"43.78125\" y=\"244.772718\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_7\">\n",
       "      <!-- 0.5 -->\n",
       "      <g transform=\"translate(20.878125 248.571937)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-2e\" d=\"M 684 794 \n",
       "L 1344 794 \n",
       "L 1344 0 \n",
       "L 684 0 \n",
       "L 684 794 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-35\" d=\"M 691 4666 \n",
       "L 3169 4666 \n",
       "L 3169 4134 \n",
       "L 1269 4134 \n",
       "L 1269 2991 \n",
       "Q 1406 3038 1543 3061 \n",
       "Q 1681 3084 1819 3084 \n",
       "Q 2600 3084 3056 2656 \n",
       "Q 3513 2228 3513 1497 \n",
       "Q 3513 744 3044 326 \n",
       "Q 2575 -91 1722 -91 \n",
       "Q 1428 -91 1123 -41 \n",
       "Q 819 9 494 109 \n",
       "L 494 744 \n",
       "Q 775 591 1075 516 \n",
       "Q 1375 441 1709 441 \n",
       "Q 2250 441 2565 725 \n",
       "Q 2881 1009 2881 1497 \n",
       "Q 2881 1984 2565 2268 \n",
       "Q 2250 2553 1709 2553 \n",
       "Q 1456 2553 1204 2497 \n",
       "Q 953 2441 691 2322 \n",
       "L 691 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_7\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m8589aa2c09\" x=\"43.78125\" y=\"188.757463\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_8\">\n",
       "      <!-- 1.0 -->\n",
       "      <g transform=\"translate(20.878125 192.556682)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_8\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m8589aa2c09\" x=\"43.78125\" y=\"132.742209\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_9\">\n",
       "      <!-- 1.5 -->\n",
       "      <g transform=\"translate(20.878125 136.541428)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_9\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m8589aa2c09\" x=\"43.78125\" y=\"76.726954\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_10\">\n",
       "      <!-- 2.0 -->\n",
       "      <g transform=\"translate(20.878125 80.526173)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_11\">\n",
       "     <!-- revenue -->\n",
       "     <g transform=\"translate(14.798438 181.387656)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-72\" d=\"M 2631 2963 \n",
       "Q 2534 3019 2420 3045 \n",
       "Q 2306 3072 2169 3072 \n",
       "Q 1681 3072 1420 2755 \n",
       "Q 1159 2438 1159 1844 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1341 3275 1631 3429 \n",
       "Q 1922 3584 2338 3584 \n",
       "Q 2397 3584 2469 3576 \n",
       "Q 2541 3569 2628 3553 \n",
       "L 2631 2963 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-76\" d=\"M 191 3500 \n",
       "L 800 3500 \n",
       "L 1894 563 \n",
       "L 2988 3500 \n",
       "L 3597 3500 \n",
       "L 2284 0 \n",
       "L 1503 0 \n",
       "L 191 3500 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6e\" d=\"M 3513 2113 \n",
       "L 3513 0 \n",
       "L 2938 0 \n",
       "L 2938 2094 \n",
       "Q 2938 2591 2744 2837 \n",
       "Q 2550 3084 2163 3084 \n",
       "Q 1697 3084 1428 2787 \n",
       "Q 1159 2491 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1366 3272 1645 3428 \n",
       "Q 1925 3584 2291 3584 \n",
       "Q 2894 3584 3203 3211 \n",
       "Q 3513 2838 3513 2113 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-75\" d=\"M 544 1381 \n",
       "L 544 3500 \n",
       "L 1119 3500 \n",
       "L 1119 1403 \n",
       "Q 1119 906 1312 657 \n",
       "Q 1506 409 1894 409 \n",
       "Q 2359 409 2629 706 \n",
       "Q 2900 1003 2900 1516 \n",
       "L 2900 3500 \n",
       "L 3475 3500 \n",
       "L 3475 0 \n",
       "L 2900 0 \n",
       "L 2900 538 \n",
       "Q 2691 219 2414 64 \n",
       "Q 2138 -91 1772 -91 \n",
       "Q 1169 -91 856 284 \n",
       "Q 544 659 544 1381 \n",
       "z\n",
       "M 1991 3584 \n",
       "L 1991 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_12\">\n",
       "     <!-- 1e9 -->\n",
       "     <g transform=\"translate(43.78125 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-39\" x=\"125.146484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_10\">\n",
       "    <path d=\"M 69.144886 279.092206 \n",
       "L 95.735795 286.918125 \n",
       "L 122.618912 277.073872 \n",
       "L 149.502029 259.029529 \n",
       "L 175.800731 244.810786 \n",
       "L 202.39164 271.348297 \n",
       "L 229.274756 262.981533 \n",
       "L 256.157873 245.572433 \n",
       "L 282.456575 210.243627 \n",
       "L 309.047484 262.151944 \n",
       "L 335.930601 243.045453 \n",
       "L 362.813718 187.233366 \n",
       "L 389.112419 165.284967 \n",
       "L 415.703328 218.595447 \n",
       "L 442.586445 190.494149 \n",
       "L 469.469562 93.90459 \n",
       "L 496.060471 34.918125 \n",
       "L 522.65138 132.027999 \n",
       "L 549.534497 267.092142 \n",
       "\" clip-path=\"url(#p461b91e2c9)\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 43.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 601.78125 299.518125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_5\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 601.78125 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_6\">\n",
       "    <path d=\"M 43.78125 22.318125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_13\">\n",
       "    <!-- revenue -->\n",
       "    <g transform=\"translate(298.217812 16.318125)scale(0.12 -0.12)\">\n",
       "     <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       "  <g id=\"axes_2\">\n",
       "   <g id=\"matplotlib.axis_3\">\n",
       "    <g id=\"ytick_5\">\n",
       "     <g id=\"line2d_11\">\n",
       "      <defs>\n",
       "       <path id=\"m468a7a58d2\" d=\"M 0 0 \n",
       "L 3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m468a7a58d2\" x=\"601.78125\" y=\"265.016052\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_14\">\n",
       "      <!-- 0.4 -->\n",
       "      <g transform=\"translate(608.78125 268.81527)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-34\" d=\"M 2419 4116 \n",
       "L 825 1625 \n",
       "L 2419 1625 \n",
       "L 2419 4116 \n",
       "z\n",
       "M 2253 4666 \n",
       "L 3047 4666 \n",
       "L 3047 1625 \n",
       "L 3713 1625 \n",
       "L 3713 1100 \n",
       "L 3047 1100 \n",
       "L 3047 0 \n",
       "L 2419 0 \n",
       "L 2419 1100 \n",
       "L 313 1100 \n",
       "L 313 1709 \n",
       "L 2253 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-34\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_6\">\n",
       "     <g id=\"line2d_12\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m468a7a58d2\" x=\"601.78125\" y=\"227.74126\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_15\">\n",
       "      <!-- 0.5 -->\n",
       "      <g transform=\"translate(608.78125 231.540479)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_7\">\n",
       "     <g id=\"line2d_13\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m468a7a58d2\" x=\"601.78125\" y=\"190.466468\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_16\">\n",
       "      <!-- 0.6 -->\n",
       "      <g transform=\"translate(608.78125 194.265687)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-36\" d=\"M 2113 2584 \n",
       "Q 1688 2584 1439 2293 \n",
       "Q 1191 2003 1191 1497 \n",
       "Q 1191 994 1439 701 \n",
       "Q 1688 409 2113 409 \n",
       "Q 2538 409 2786 701 \n",
       "Q 3034 994 3034 1497 \n",
       "Q 3034 2003 2786 2293 \n",
       "Q 2538 2584 2113 2584 \n",
       "z\n",
       "M 3366 4563 \n",
       "L 3366 3988 \n",
       "Q 3128 4100 2886 4159 \n",
       "Q 2644 4219 2406 4219 \n",
       "Q 1781 4219 1451 3797 \n",
       "Q 1122 3375 1075 2522 \n",
       "Q 1259 2794 1537 2939 \n",
       "Q 1816 3084 2150 3084 \n",
       "Q 2853 3084 3261 2657 \n",
       "Q 3669 2231 3669 1497 \n",
       "Q 3669 778 3244 343 \n",
       "Q 2819 -91 2113 -91 \n",
       "Q 1303 -91 875 529 \n",
       "Q 447 1150 447 2328 \n",
       "Q 447 3434 972 4092 \n",
       "Q 1497 4750 2381 4750 \n",
       "Q 2619 4750 2861 4703 \n",
       "Q 3103 4656 3366 4563 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-36\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_8\">\n",
       "     <g id=\"line2d_14\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m468a7a58d2\" x=\"601.78125\" y=\"153.191677\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_17\">\n",
       "      <!-- 0.7 -->\n",
       "      <g transform=\"translate(608.78125 156.990895)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-37\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_9\">\n",
       "     <g id=\"line2d_15\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m468a7a58d2\" x=\"601.78125\" y=\"115.916885\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_18\">\n",
       "      <!-- 0.8 -->\n",
       "      <g transform=\"translate(608.78125 119.716104)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-38\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_10\">\n",
       "     <g id=\"line2d_16\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m468a7a58d2\" x=\"601.78125\" y=\"78.642093\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_19\">\n",
       "      <!-- 0.9 -->\n",
       "      <g transform=\"translate(608.78125 82.441312)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-39\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_11\">\n",
       "     <g id=\"line2d_17\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m468a7a58d2\" x=\"601.78125\" y=\"41.367301\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_20\">\n",
       "      <!-- 1.0 -->\n",
       "      <g transform=\"translate(608.78125 45.16652)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_21\">\n",
       "     <!-- csmar -->\n",
       "     <g transform=\"translate(636.282813 176.261875)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-63\" d=\"M 3122 3366 \n",
       "L 3122 2828 \n",
       "Q 2878 2963 2633 3030 \n",
       "Q 2388 3097 2138 3097 \n",
       "Q 1578 3097 1268 2742 \n",
       "Q 959 2388 959 1747 \n",
       "Q 959 1106 1268 751 \n",
       "Q 1578 397 2138 397 \n",
       "Q 2388 397 2633 464 \n",
       "Q 2878 531 3122 666 \n",
       "L 3122 134 \n",
       "Q 2881 22 2623 -34 \n",
       "Q 2366 -91 2075 -91 \n",
       "Q 1284 -91 818 406 \n",
       "Q 353 903 353 1747 \n",
       "Q 353 2603 823 3093 \n",
       "Q 1294 3584 2113 3584 \n",
       "Q 2378 3584 2631 3529 \n",
       "Q 2884 3475 3122 3366 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-73\" d=\"M 2834 3397 \n",
       "L 2834 2853 \n",
       "Q 2591 2978 2328 3040 \n",
       "Q 2066 3103 1784 3103 \n",
       "Q 1356 3103 1142 2972 \n",
       "Q 928 2841 928 2578 \n",
       "Q 928 2378 1081 2264 \n",
       "Q 1234 2150 1697 2047 \n",
       "L 1894 2003 \n",
       "Q 2506 1872 2764 1633 \n",
       "Q 3022 1394 3022 966 \n",
       "Q 3022 478 2636 193 \n",
       "Q 2250 -91 1575 -91 \n",
       "Q 1294 -91 989 -36 \n",
       "Q 684 19 347 128 \n",
       "L 347 722 \n",
       "Q 666 556 975 473 \n",
       "Q 1284 391 1588 391 \n",
       "Q 1994 391 2212 530 \n",
       "Q 2431 669 2431 922 \n",
       "Q 2431 1156 2273 1281 \n",
       "Q 2116 1406 1581 1522 \n",
       "L 1381 1569 \n",
       "Q 847 1681 609 1914 \n",
       "Q 372 2147 372 2553 \n",
       "Q 372 3047 722 3315 \n",
       "Q 1072 3584 1716 3584 \n",
       "Q 2034 3584 2315 3537 \n",
       "Q 2597 3491 2834 3397 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-61\" d=\"M 2194 1759 \n",
       "Q 1497 1759 1228 1600 \n",
       "Q 959 1441 959 1056 \n",
       "Q 959 750 1161 570 \n",
       "Q 1363 391 1709 391 \n",
       "Q 2188 391 2477 730 \n",
       "Q 2766 1069 2766 1631 \n",
       "L 2766 1759 \n",
       "L 2194 1759 \n",
       "z\n",
       "M 3341 1997 \n",
       "L 3341 0 \n",
       "L 2766 0 \n",
       "L 2766 531 \n",
       "Q 2569 213 2275 61 \n",
       "Q 1981 -91 1556 -91 \n",
       "Q 1019 -91 701 211 \n",
       "Q 384 513 384 1019 \n",
       "Q 384 1609 779 1909 \n",
       "Q 1175 2209 1959 2209 \n",
       "L 2766 2209 \n",
       "L 2766 2266 \n",
       "Q 2766 2663 2505 2880 \n",
       "Q 2244 3097 1772 3097 \n",
       "Q 1472 3097 1187 3025 \n",
       "Q 903 2953 641 2809 \n",
       "L 641 3341 \n",
       "Q 956 3463 1253 3523 \n",
       "Q 1550 3584 1831 3584 \n",
       "Q 2591 3584 2966 3190 \n",
       "Q 3341 2797 3341 1997 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_22\">\n",
       "     <!-- 1e10 -->\n",
       "     <g transform=\"translate(576.540625 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-31\" x=\"125.146484\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-30\" x=\"188.769531\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_18\">\n",
       "    <path d=\"M 363.105925 153.148175 \n",
       "M 415.703328 245.95343 \n",
       "L 442.586445 163.828288 \n",
       "L 469.469562 34.918125 \n",
       "L 469.761769 34.918125 \n",
       "L 496.060471 286.918125 \n",
       "L 522.65138 218.347473 \n",
       "L 549.534497 144.567404 \n",
       "L 576.417614 49.041318 \n",
       "\" clip-path=\"url(#p461b91e2c9)\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_7\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 43.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_8\">\n",
       "    <path d=\"M 601.78125 299.518125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_9\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 601.78125 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_10\">\n",
       "    <path d=\"M 43.78125 22.318125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"legend_1\">\n",
       "    <g id=\"patch_11\">\n",
       "     <path d=\"M 50.78125 59.674375 \n",
       "L 135.81875 59.674375 \n",
       "Q 137.81875 59.674375 137.81875 57.674375 \n",
       "L 137.81875 29.318125 \n",
       "Q 137.81875 27.318125 135.81875 27.318125 \n",
       "L 50.78125 27.318125 \n",
       "Q 48.78125 27.318125 48.78125 29.318125 \n",
       "L 48.78125 57.674375 \n",
       "Q 48.78125 59.674375 50.78125 59.674375 \n",
       "z\n",
       "\" style=\"fill: #ffffff; opacity: 0.8; stroke: #cccccc; stroke-linejoin: miter\"/>\n",
       "    </g>\n",
       "    <g id=\"line2d_19\">\n",
       "     <path d=\"M 52.78125 35.416562 \n",
       "L 62.78125 35.416562 \n",
       "L 72.78125 35.416562 \n",
       "\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_23\">\n",
       "     <!-- onlinedata -->\n",
       "     <g transform=\"translate(80.78125 38.916562)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-6f\" d=\"M 1959 3097 \n",
       "Q 1497 3097 1228 2736 \n",
       "Q 959 2375 959 1747 \n",
       "Q 959 1119 1226 758 \n",
       "Q 1494 397 1959 397 \n",
       "Q 2419 397 2687 759 \n",
       "Q 2956 1122 2956 1747 \n",
       "Q 2956 2369 2687 2733 \n",
       "Q 2419 3097 1959 3097 \n",
       "z\n",
       "M 1959 3584 \n",
       "Q 2709 3584 3137 3096 \n",
       "Q 3566 2609 3566 1747 \n",
       "Q 3566 888 3137 398 \n",
       "Q 2709 -91 1959 -91 \n",
       "Q 1206 -91 779 398 \n",
       "Q 353 888 353 1747 \n",
       "Q 353 2609 779 3096 \n",
       "Q 1206 3584 1959 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6c\" d=\"M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-64\" d=\"M 2906 2969 \n",
       "L 2906 4863 \n",
       "L 3481 4863 \n",
       "L 3481 0 \n",
       "L 2906 0 \n",
       "L 2906 525 \n",
       "Q 2725 213 2448 61 \n",
       "Q 2172 -91 1784 -91 \n",
       "Q 1150 -91 751 415 \n",
       "Q 353 922 353 1747 \n",
       "Q 353 2572 751 3078 \n",
       "Q 1150 3584 1784 3584 \n",
       "Q 2172 3584 2448 3432 \n",
       "Q 2725 3281 2906 2969 \n",
       "z\n",
       "M 947 1747 \n",
       "Q 947 1113 1208 752 \n",
       "Q 1469 391 1925 391 \n",
       "Q 2381 391 2643 752 \n",
       "Q 2906 1113 2906 1747 \n",
       "Q 2906 2381 2643 2742 \n",
       "Q 2381 3103 1925 3103 \n",
       "Q 1469 3103 1208 2742 \n",
       "Q 947 2381 947 1747 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-6f\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"61.181641\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6c\" x=\"124.560547\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"152.34375\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"180.126953\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"243.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.029297\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.785156\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"468.994141\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_20\">\n",
       "     <path d=\"M 52.78125 50.094688 \n",
       "L 62.78125 50.094688 \n",
       "L 72.78125 50.094688 \n",
       "\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_24\">\n",
       "     <!-- csmardata -->\n",
       "     <g transform=\"translate(80.78125 53.594688)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.134766\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.611328\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.890625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"469.099609\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       " </g>\n",
       " <defs>\n",
       "  <clipPath id=\"p461b91e2c9\">\n",
       "   <rect x=\"43.78125\" y=\"22.318125\" width=\"558\" height=\"277.2\"/>\n",
       "  </clipPath>\n",
       " </defs>\n",
       "</svg>\n"
      ],
      "text/plain": [
       "<Figure size 1000x500 with 2 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig = plt.figure(figsize=(10, 5))\n",
    "ax1 = fig.add_subplot(1, 1, 1)  #(x, x, x)这里前两个表示几*几的网格，最后一个表示第几子图\n",
    "ax1.plot(Qdata2['三只松鼠（300783.SZ）'],color='red',label='onlinedata')\n",
    "ax1.set_xlabel('time')  # 设置横坐标标签\n",
    "ax1.set_ylabel('revenue')  # 设置左边纵坐标标签\n",
    "ax1.set_title(\"revenue\")  # 给整张图命名\n",
    "data_format = mdates.DateFormatter('%Y')\n",
    "ax1.xaxis.set_major_formatter(data_format)\n",
    "ax1.xaxis.set_major_locator(mdates.YearLocator())\n",
    "plt.xticks(rotation = 90)\n",
    "ax2 = ax1.twinx()  #twinx()函数表示共享x轴\n",
    "ax2.plot(finaldata['三只松鼠'],color='blue',label='csmardata')\n",
    "ax2.set_ylabel('csmar')  # 设置右边纵坐标标签\n",
    "lines, labels = ax1.get_legend_handles_labels()\n",
    "lines2, labels2 = ax2.get_legend_handles_labels()\n",
    "ax2.legend(lines + lines2, labels + labels2, loc='upper left')\n",
    "fig = plt.gcf()\n",
    "fig.savefig('三只松鼠.pdf', bbox_inches='tight')\n",
    "plt.show();"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
       "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"626.48125pt\" height=\"352.84625pt\" viewBox=\"0 0 626.48125 352.84625\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">\n",
       " <metadata>\n",
       "  <rdf:RDF xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n",
       "   <cc:Work>\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\n",
       "    <dc:date>2024-12-19T16:30:07.636963</dc:date>\n",
       "    <dc:format>image/svg+xml</dc:format>\n",
       "    <dc:creator>\n",
       "     <cc:Agent>\n",
       "      <dc:title>Matplotlib v3.5.2, https://matplotlib.org/</dc:title>\n",
       "     </cc:Agent>\n",
       "    </dc:creator>\n",
       "   </cc:Work>\n",
       "  </rdf:RDF>\n",
       " </metadata>\n",
       " <defs>\n",
       "  <style type=\"text/css\">*{stroke-linejoin: round; stroke-linecap: butt}</style>\n",
       " </defs>\n",
       " <g id=\"figure_1\">\n",
       "  <g id=\"patch_1\">\n",
       "   <path d=\"M 0 352.84625 \n",
       "L 626.48125 352.84625 \n",
       "L 626.48125 0 \n",
       "L 0 0 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "  </g>\n",
       "  <g id=\"axes_1\">\n",
       "   <g id=\"patch_2\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 592.240625 299.518125 \n",
       "L 592.240625 22.318125 \n",
       "L 34.240625 22.318125 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_1\">\n",
       "    <g id=\"xtick_1\">\n",
       "     <g id=\"line2d_1\">\n",
       "      <defs>\n",
       "       <path id=\"mca9ec80c89\" d=\"M 0 0 \n",
       "L 0 3.5 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#mca9ec80c89\" x=\"59.604261\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_1\">\n",
       "      <!-- 2016 -->\n",
       "      <g transform=\"translate(62.363636 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-32\" d=\"M 1228 531 \n",
       "L 3431 531 \n",
       "L 3431 0 \n",
       "L 469 0 \n",
       "L 469 531 \n",
       "Q 828 903 1448 1529 \n",
       "Q 2069 2156 2228 2338 \n",
       "Q 2531 2678 2651 2914 \n",
       "Q 2772 3150 2772 3378 \n",
       "Q 2772 3750 2511 3984 \n",
       "Q 2250 4219 1831 4219 \n",
       "Q 1534 4219 1204 4116 \n",
       "Q 875 4013 500 3803 \n",
       "L 500 4441 \n",
       "Q 881 4594 1212 4672 \n",
       "Q 1544 4750 1819 4750 \n",
       "Q 2544 4750 2975 4387 \n",
       "Q 3406 4025 3406 3419 \n",
       "Q 3406 3131 3298 2873 \n",
       "Q 3191 2616 2906 2266 \n",
       "Q 2828 2175 2409 1742 \n",
       "Q 1991 1309 1228 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-30\" d=\"M 2034 4250 \n",
       "Q 1547 4250 1301 3770 \n",
       "Q 1056 3291 1056 2328 \n",
       "Q 1056 1369 1301 889 \n",
       "Q 1547 409 2034 409 \n",
       "Q 2525 409 2770 889 \n",
       "Q 3016 1369 3016 2328 \n",
       "Q 3016 3291 2770 3770 \n",
       "Q 2525 4250 2034 4250 \n",
       "z\n",
       "M 2034 4750 \n",
       "Q 2819 4750 3233 4129 \n",
       "Q 3647 3509 3647 2328 \n",
       "Q 3647 1150 3233 529 \n",
       "Q 2819 -91 2034 -91 \n",
       "Q 1250 -91 836 529 \n",
       "Q 422 1150 422 2328 \n",
       "Q 422 3509 836 4129 \n",
       "Q 1250 4750 2034 4750 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-31\" d=\"M 794 531 \n",
       "L 1825 531 \n",
       "L 1825 4091 \n",
       "L 703 3866 \n",
       "L 703 4441 \n",
       "L 1819 4666 \n",
       "L 2450 4666 \n",
       "L 2450 531 \n",
       "L 3481 531 \n",
       "L 3481 0 \n",
       "L 794 0 \n",
       "L 794 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-36\" d=\"M 2113 2584 \n",
       "Q 1688 2584 1439 2293 \n",
       "Q 1191 2003 1191 1497 \n",
       "Q 1191 994 1439 701 \n",
       "Q 1688 409 2113 409 \n",
       "Q 2538 409 2786 701 \n",
       "Q 3034 994 3034 1497 \n",
       "Q 3034 2003 2786 2293 \n",
       "Q 2538 2584 2113 2584 \n",
       "z\n",
       "M 3366 4563 \n",
       "L 3366 3988 \n",
       "Q 3128 4100 2886 4159 \n",
       "Q 2644 4219 2406 4219 \n",
       "Q 1781 4219 1451 3797 \n",
       "Q 1122 3375 1075 2522 \n",
       "Q 1259 2794 1537 2939 \n",
       "Q 1816 3084 2150 3084 \n",
       "Q 2853 3084 3261 2657 \n",
       "Q 3669 2231 3669 1497 \n",
       "Q 3669 778 3244 343 \n",
       "Q 2819 -91 2113 -91 \n",
       "Q 1303 -91 875 529 \n",
       "Q 447 1150 447 2328 \n",
       "Q 447 3434 972 4092 \n",
       "Q 1497 4750 2381 4750 \n",
       "Q 2619 4750 2861 4703 \n",
       "Q 3103 4656 3366 4563 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-36\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_2\">\n",
       "     <g id=\"line2d_2\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mca9ec80c89\" x=\"161.281051\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_2\">\n",
       "      <!-- 2017 -->\n",
       "      <g transform=\"translate(164.040426 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-37\" d=\"M 525 4666 \n",
       "L 3525 4666 \n",
       "L 3525 4397 \n",
       "L 1831 0 \n",
       "L 1172 0 \n",
       "L 2766 4134 \n",
       "L 525 4134 \n",
       "L 525 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-37\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_3\">\n",
       "     <g id=\"line2d_3\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mca9ec80c89\" x=\"262.680036\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_3\">\n",
       "      <!-- 2018 -->\n",
       "      <g transform=\"translate(265.439411 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-38\" d=\"M 2034 2216 \n",
       "Q 1584 2216 1326 1975 \n",
       "Q 1069 1734 1069 1313 \n",
       "Q 1069 891 1326 650 \n",
       "Q 1584 409 2034 409 \n",
       "Q 2484 409 2743 651 \n",
       "Q 3003 894 3003 1313 \n",
       "Q 3003 1734 2745 1975 \n",
       "Q 2488 2216 2034 2216 \n",
       "z\n",
       "M 1403 2484 \n",
       "Q 997 2584 770 2862 \n",
       "Q 544 3141 544 3541 \n",
       "Q 544 4100 942 4425 \n",
       "Q 1341 4750 2034 4750 \n",
       "Q 2731 4750 3128 4425 \n",
       "Q 3525 4100 3525 3541 \n",
       "Q 3525 3141 3298 2862 \n",
       "Q 3072 2584 2669 2484 \n",
       "Q 3125 2378 3379 2068 \n",
       "Q 3634 1759 3634 1313 \n",
       "Q 3634 634 3220 271 \n",
       "Q 2806 -91 2034 -91 \n",
       "Q 1263 -91 848 271 \n",
       "Q 434 634 434 1313 \n",
       "Q 434 1759 690 2068 \n",
       "Q 947 2378 1403 2484 \n",
       "z\n",
       "M 1172 3481 \n",
       "Q 1172 3119 1398 2916 \n",
       "Q 1625 2713 2034 2713 \n",
       "Q 2441 2713 2670 2916 \n",
       "Q 2900 3119 2900 3481 \n",
       "Q 2900 3844 2670 4047 \n",
       "Q 2441 4250 2034 4250 \n",
       "Q 1625 4250 1398 4047 \n",
       "Q 1172 3844 1172 3481 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-38\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_4\">\n",
       "     <g id=\"line2d_4\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mca9ec80c89\" x=\"364.07902\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_4\">\n",
       "      <!-- 2019 -->\n",
       "      <g transform=\"translate(366.838395 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-39\" d=\"M 703 97 \n",
       "L 703 672 \n",
       "Q 941 559 1184 500 \n",
       "Q 1428 441 1663 441 \n",
       "Q 2288 441 2617 861 \n",
       "Q 2947 1281 2994 2138 \n",
       "Q 2813 1869 2534 1725 \n",
       "Q 2256 1581 1919 1581 \n",
       "Q 1219 1581 811 2004 \n",
       "Q 403 2428 403 3163 \n",
       "Q 403 3881 828 4315 \n",
       "Q 1253 4750 1959 4750 \n",
       "Q 2769 4750 3195 4129 \n",
       "Q 3622 3509 3622 2328 \n",
       "Q 3622 1225 3098 567 \n",
       "Q 2575 -91 1691 -91 \n",
       "Q 1453 -91 1209 -44 \n",
       "Q 966 3 703 97 \n",
       "z\n",
       "M 1959 2075 \n",
       "Q 2384 2075 2632 2365 \n",
       "Q 2881 2656 2881 3163 \n",
       "Q 2881 3666 2632 3958 \n",
       "Q 2384 4250 1959 4250 \n",
       "Q 1534 4250 1286 3958 \n",
       "Q 1038 3666 1038 3163 \n",
       "Q 1038 2656 1286 2365 \n",
       "Q 1534 2075 1959 2075 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-39\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_5\">\n",
       "     <g id=\"line2d_5\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mca9ec80c89\" x=\"465.478004\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_5\">\n",
       "      <!-- 2020 -->\n",
       "      <g transform=\"translate(468.237379 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_6\">\n",
       "     <g id=\"line2d_6\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mca9ec80c89\" x=\"567.154794\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_6\">\n",
       "      <!-- 2021 -->\n",
       "      <g transform=\"translate(569.914169 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_7\">\n",
       "     <!-- time -->\n",
       "     <g transform=\"translate(301.944531 343.566563)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-74\" d=\"M 1172 4494 \n",
       "L 1172 3500 \n",
       "L 2356 3500 \n",
       "L 2356 3053 \n",
       "L 1172 3053 \n",
       "L 1172 1153 \n",
       "Q 1172 725 1289 603 \n",
       "Q 1406 481 1766 481 \n",
       "L 2356 481 \n",
       "L 2356 0 \n",
       "L 1766 0 \n",
       "Q 1100 0 847 248 \n",
       "Q 594 497 594 1153 \n",
       "L 594 3053 \n",
       "L 172 3053 \n",
       "L 172 3500 \n",
       "L 594 3500 \n",
       "L 594 4494 \n",
       "L 1172 4494 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-69\" d=\"M 603 3500 \n",
       "L 1178 3500 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 3500 \n",
       "z\n",
       "M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 4134 \n",
       "L 603 4134 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6d\" d=\"M 3328 2828 \n",
       "Q 3544 3216 3844 3400 \n",
       "Q 4144 3584 4550 3584 \n",
       "Q 5097 3584 5394 3201 \n",
       "Q 5691 2819 5691 2113 \n",
       "L 5691 0 \n",
       "L 5113 0 \n",
       "L 5113 2094 \n",
       "Q 5113 2597 4934 2840 \n",
       "Q 4756 3084 4391 3084 \n",
       "Q 3944 3084 3684 2787 \n",
       "Q 3425 2491 3425 1978 \n",
       "L 3425 0 \n",
       "L 2847 0 \n",
       "L 2847 2094 \n",
       "Q 2847 2600 2669 2842 \n",
       "Q 2491 3084 2119 3084 \n",
       "Q 1678 3084 1418 2786 \n",
       "Q 1159 2488 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1356 3278 1631 3431 \n",
       "Q 1906 3584 2284 3584 \n",
       "Q 2666 3584 2933 3390 \n",
       "Q 3200 3197 3328 2828 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-65\" d=\"M 3597 1894 \n",
       "L 3597 1613 \n",
       "L 953 1613 \n",
       "Q 991 1019 1311 708 \n",
       "Q 1631 397 2203 397 \n",
       "Q 2534 397 2845 478 \n",
       "Q 3156 559 3463 722 \n",
       "L 3463 178 \n",
       "Q 3153 47 2828 -22 \n",
       "Q 2503 -91 2169 -91 \n",
       "Q 1331 -91 842 396 \n",
       "Q 353 884 353 1716 \n",
       "Q 353 2575 817 3079 \n",
       "Q 1281 3584 2069 3584 \n",
       "Q 2775 3584 3186 3129 \n",
       "Q 3597 2675 3597 1894 \n",
       "z\n",
       "M 3022 2063 \n",
       "Q 3016 2534 2758 2815 \n",
       "Q 2500 3097 2075 3097 \n",
       "Q 1594 3097 1305 2825 \n",
       "Q 1016 2553 972 2059 \n",
       "L 3022 2063 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-74\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"39.208984\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"66.992188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"164.404297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_2\">\n",
       "    <g id=\"ytick_1\">\n",
       "     <g id=\"line2d_7\">\n",
       "      <defs>\n",
       "       <path id=\"mac44f2aaf7\" d=\"M 0 0 \n",
       "L -3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#mac44f2aaf7\" x=\"34.240625\" y=\"286.918125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_8\">\n",
       "      <!-- 0 -->\n",
       "      <g transform=\"translate(20.878125 290.717344)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_8\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mac44f2aaf7\" x=\"34.240625\" y=\"233.025467\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_9\">\n",
       "      <!-- 1 -->\n",
       "      <g transform=\"translate(20.878125 236.824685)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_9\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mac44f2aaf7\" x=\"34.240625\" y=\"179.132808\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_10\">\n",
       "      <!-- 2 -->\n",
       "      <g transform=\"translate(20.878125 182.932027)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_10\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mac44f2aaf7\" x=\"34.240625\" y=\"125.24015\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_11\">\n",
       "      <!-- 3 -->\n",
       "      <g transform=\"translate(20.878125 129.039368)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-33\" d=\"M 2597 2516 \n",
       "Q 3050 2419 3304 2112 \n",
       "Q 3559 1806 3559 1356 \n",
       "Q 3559 666 3084 287 \n",
       "Q 2609 -91 1734 -91 \n",
       "Q 1441 -91 1130 -33 \n",
       "Q 819 25 488 141 \n",
       "L 488 750 \n",
       "Q 750 597 1062 519 \n",
       "Q 1375 441 1716 441 \n",
       "Q 2309 441 2620 675 \n",
       "Q 2931 909 2931 1356 \n",
       "Q 2931 1769 2642 2001 \n",
       "Q 2353 2234 1838 2234 \n",
       "L 1294 2234 \n",
       "L 1294 2753 \n",
       "L 1863 2753 \n",
       "Q 2328 2753 2575 2939 \n",
       "Q 2822 3125 2822 3475 \n",
       "Q 2822 3834 2567 4026 \n",
       "Q 2313 4219 1838 4219 \n",
       "Q 1578 4219 1281 4162 \n",
       "Q 984 4106 628 3988 \n",
       "L 628 4550 \n",
       "Q 988 4650 1302 4700 \n",
       "Q 1616 4750 1894 4750 \n",
       "Q 2613 4750 3031 4423 \n",
       "Q 3450 4097 3450 3541 \n",
       "Q 3450 3153 3228 2886 \n",
       "Q 3006 2619 2597 2516 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_5\">\n",
       "     <g id=\"line2d_11\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#mac44f2aaf7\" x=\"34.240625\" y=\"71.347491\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_12\">\n",
       "      <!-- 4 -->\n",
       "      <g transform=\"translate(20.878125 75.14671)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-34\" d=\"M 2419 4116 \n",
       "L 825 1625 \n",
       "L 2419 1625 \n",
       "L 2419 4116 \n",
       "z\n",
       "M 2253 4666 \n",
       "L 3047 4666 \n",
       "L 3047 1625 \n",
       "L 3713 1625 \n",
       "L 3713 1100 \n",
       "L 3047 1100 \n",
       "L 3047 0 \n",
       "L 2419 0 \n",
       "L 2419 1100 \n",
       "L 313 1100 \n",
       "L 313 1709 \n",
       "L 2253 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-34\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_13\">\n",
       "     <!-- revenue -->\n",
       "     <g transform=\"translate(14.798437 181.387656)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-72\" d=\"M 2631 2963 \n",
       "Q 2534 3019 2420 3045 \n",
       "Q 2306 3072 2169 3072 \n",
       "Q 1681 3072 1420 2755 \n",
       "Q 1159 2438 1159 1844 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1341 3275 1631 3429 \n",
       "Q 1922 3584 2338 3584 \n",
       "Q 2397 3584 2469 3576 \n",
       "Q 2541 3569 2628 3553 \n",
       "L 2631 2963 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-76\" d=\"M 191 3500 \n",
       "L 800 3500 \n",
       "L 1894 563 \n",
       "L 2988 3500 \n",
       "L 3597 3500 \n",
       "L 2284 0 \n",
       "L 1503 0 \n",
       "L 191 3500 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6e\" d=\"M 3513 2113 \n",
       "L 3513 0 \n",
       "L 2938 0 \n",
       "L 2938 2094 \n",
       "Q 2938 2591 2744 2837 \n",
       "Q 2550 3084 2163 3084 \n",
       "Q 1697 3084 1428 2787 \n",
       "Q 1159 2491 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1366 3272 1645 3428 \n",
       "Q 1925 3584 2291 3584 \n",
       "Q 2894 3584 3203 3211 \n",
       "Q 3513 2838 3513 2113 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-75\" d=\"M 544 1381 \n",
       "L 544 3500 \n",
       "L 1119 3500 \n",
       "L 1119 1403 \n",
       "Q 1119 906 1312 657 \n",
       "Q 1506 409 1894 409 \n",
       "Q 2359 409 2629 706 \n",
       "Q 2900 1003 2900 1516 \n",
       "L 2900 3500 \n",
       "L 3475 3500 \n",
       "L 3475 0 \n",
       "L 2900 0 \n",
       "L 2900 538 \n",
       "Q 2691 219 2414 64 \n",
       "Q 2138 -91 1772 -91 \n",
       "Q 1169 -91 856 284 \n",
       "Q 544 659 544 1381 \n",
       "z\n",
       "M 1991 3584 \n",
       "L 1991 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_14\">\n",
       "     <!-- 1e6 -->\n",
       "     <g transform=\"translate(34.240625 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-36\" x=\"125.146484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_12\">\n",
       "    <path d=\"M 84.606751 286.918125 \n",
       "L 109.887045 286.918125 \n",
       "L 135.445146 286.918125 \n",
       "L 161.003246 286.918125 \n",
       "L 186.005735 283.741498 \n",
       "L 211.28603 271.856919 \n",
       "L 236.84413 229.191636 \n",
       "L 262.40223 261.834073 \n",
       "L 287.404719 257.986676 \n",
       "L 312.685014 261.122097 \n",
       "L 338.243114 199.201876 \n",
       "L 363.801214 256.220323 \n",
       "L 388.803704 250.152694 \n",
       "L 414.083998 226.700359 \n",
       "L 439.642099 34.918125 \n",
       "L 465.200199 245.829083 \n",
       "L 490.480494 97.043983 \n",
       "L 515.760788 100.975429 \n",
       "L 541.318888 252.899275 \n",
       "\" clip-path=\"url(#pdb1cbae519)\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 34.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 592.240625 299.518125 \n",
       "L 592.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_5\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 592.240625 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_6\">\n",
       "    <path d=\"M 34.240625 22.318125 \n",
       "L 592.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_15\">\n",
       "    <!-- revenue -->\n",
       "    <g transform=\"translate(288.677188 16.318125)scale(0.12 -0.12)\">\n",
       "     <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       "  <g id=\"axes_2\">\n",
       "   <g id=\"matplotlib.axis_3\">\n",
       "    <g id=\"ytick_6\">\n",
       "     <g id=\"line2d_13\">\n",
       "      <defs>\n",
       "       <path id=\"m0f877b96be\" d=\"M 0 0 \n",
       "L 3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0f877b96be\" x=\"592.240625\" y=\"270.852022\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_16\">\n",
       "      <!-- 1 -->\n",
       "      <g transform=\"translate(599.240625 274.65124)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_7\">\n",
       "     <g id=\"line2d_14\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0f877b96be\" x=\"592.240625\" y=\"223.313497\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_17\">\n",
       "      <!-- 2 -->\n",
       "      <g transform=\"translate(599.240625 227.112716)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_8\">\n",
       "     <g id=\"line2d_15\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0f877b96be\" x=\"592.240625\" y=\"175.774972\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_18\">\n",
       "      <!-- 3 -->\n",
       "      <g transform=\"translate(599.240625 179.574191)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_9\">\n",
       "     <g id=\"line2d_16\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0f877b96be\" x=\"592.240625\" y=\"128.236448\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_19\">\n",
       "      <!-- 4 -->\n",
       "      <g transform=\"translate(599.240625 132.035666)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-34\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_10\">\n",
       "     <g id=\"line2d_17\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0f877b96be\" x=\"592.240625\" y=\"80.697923\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_20\">\n",
       "      <!-- 5 -->\n",
       "      <g transform=\"translate(599.240625 84.497142)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-35\" d=\"M 691 4666 \n",
       "L 3169 4666 \n",
       "L 3169 4134 \n",
       "L 1269 4134 \n",
       "L 1269 2991 \n",
       "Q 1406 3038 1543 3061 \n",
       "Q 1681 3084 1819 3084 \n",
       "Q 2600 3084 3056 2656 \n",
       "Q 3513 2228 3513 1497 \n",
       "Q 3513 744 3044 326 \n",
       "Q 2575 -91 1722 -91 \n",
       "Q 1428 -91 1123 -41 \n",
       "Q 819 9 494 109 \n",
       "L 494 744 \n",
       "Q 775 591 1075 516 \n",
       "Q 1375 441 1709 441 \n",
       "Q 2250 441 2565 725 \n",
       "Q 2881 1009 2881 1497 \n",
       "Q 2881 1984 2565 2268 \n",
       "Q 2250 2553 1709 2553 \n",
       "Q 1456 2553 1204 2497 \n",
       "Q 953 2441 691 2322 \n",
       "L 691 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-35\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_11\">\n",
       "     <g id=\"line2d_18\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m0f877b96be\" x=\"592.240625\" y=\"33.159398\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_21\">\n",
       "      <!-- 6 -->\n",
       "      <g transform=\"translate(599.240625 36.958617)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-36\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_22\">\n",
       "     <!-- csmar -->\n",
       "     <g transform=\"translate(617.201563 176.261875)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-63\" d=\"M 3122 3366 \n",
       "L 3122 2828 \n",
       "Q 2878 2963 2633 3030 \n",
       "Q 2388 3097 2138 3097 \n",
       "Q 1578 3097 1268 2742 \n",
       "Q 959 2388 959 1747 \n",
       "Q 959 1106 1268 751 \n",
       "Q 1578 397 2138 397 \n",
       "Q 2388 397 2633 464 \n",
       "Q 2878 531 3122 666 \n",
       "L 3122 134 \n",
       "Q 2881 22 2623 -34 \n",
       "Q 2366 -91 2075 -91 \n",
       "Q 1284 -91 818 406 \n",
       "Q 353 903 353 1747 \n",
       "Q 353 2603 823 3093 \n",
       "Q 1294 3584 2113 3584 \n",
       "Q 2378 3584 2631 3529 \n",
       "Q 2884 3475 3122 3366 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-73\" d=\"M 2834 3397 \n",
       "L 2834 2853 \n",
       "Q 2591 2978 2328 3040 \n",
       "Q 2066 3103 1784 3103 \n",
       "Q 1356 3103 1142 2972 \n",
       "Q 928 2841 928 2578 \n",
       "Q 928 2378 1081 2264 \n",
       "Q 1234 2150 1697 2047 \n",
       "L 1894 2003 \n",
       "Q 2506 1872 2764 1633 \n",
       "Q 3022 1394 3022 966 \n",
       "Q 3022 478 2636 193 \n",
       "Q 2250 -91 1575 -91 \n",
       "Q 1294 -91 989 -36 \n",
       "Q 684 19 347 128 \n",
       "L 347 722 \n",
       "Q 666 556 975 473 \n",
       "Q 1284 391 1588 391 \n",
       "Q 1994 391 2212 530 \n",
       "Q 2431 669 2431 922 \n",
       "Q 2431 1156 2273 1281 \n",
       "Q 2116 1406 1581 1522 \n",
       "L 1381 1569 \n",
       "Q 847 1681 609 1914 \n",
       "Q 372 2147 372 2553 \n",
       "Q 372 3047 722 3315 \n",
       "Q 1072 3584 1716 3584 \n",
       "Q 2034 3584 2315 3537 \n",
       "Q 2597 3491 2834 3397 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-61\" d=\"M 2194 1759 \n",
       "Q 1497 1759 1228 1600 \n",
       "Q 959 1441 959 1056 \n",
       "Q 959 750 1161 570 \n",
       "Q 1363 391 1709 391 \n",
       "Q 2188 391 2477 730 \n",
       "Q 2766 1069 2766 1631 \n",
       "L 2766 1759 \n",
       "L 2194 1759 \n",
       "z\n",
       "M 3341 1997 \n",
       "L 3341 0 \n",
       "L 2766 0 \n",
       "L 2766 531 \n",
       "Q 2569 213 2275 61 \n",
       "Q 1981 -91 1556 -91 \n",
       "Q 1019 -91 701 211 \n",
       "Q 384 513 384 1019 \n",
       "Q 384 1609 779 1909 \n",
       "Q 1175 2209 1959 2209 \n",
       "L 2766 2209 \n",
       "L 2766 2266 \n",
       "Q 2766 2663 2505 2880 \n",
       "Q 2244 3097 1772 3097 \n",
       "Q 1472 3097 1187 3025 \n",
       "Q 903 2953 641 2809 \n",
       "L 641 3341 \n",
       "Q 956 3463 1253 3523 \n",
       "Q 1550 3584 1831 3584 \n",
       "Q 2591 3584 2966 3190 \n",
       "Q 3341 2797 3341 1997 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_23\">\n",
       "     <!-- 1e9 -->\n",
       "     <g transform=\"translate(573.3625 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-39\" x=\"125.146484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_19\">\n",
       "    <path d=\"M 59.604261 196.533598 \n",
       "L 84.606751 286.918125 \n",
       "L 109.887045 248.998614 \n",
       "L 135.445146 205.382236 \n",
       "L 161.003246 161.252903 \n",
       "L 161.281051 161.252903 \n",
       "L 186.005735 279.401127 \n",
       "L 211.28603 232.07201 \n",
       "L 236.84413 177.898792 \n",
       "L 262.40223 124.447158 \n",
       "L 262.680036 124.447158 \n",
       "L 287.404719 271.379743 \n",
       "L 312.685014 215.390865 \n",
       "L 338.243114 150.844666 \n",
       "L 363.801214 88.626035 \n",
       "L 364.07902 88.626035 \n",
       "L 388.803704 264.085045 \n",
       "L 414.083998 196.791727 \n",
       "L 439.642099 122.448735 \n",
       "L 465.200199 50.096911 \n",
       "L 465.478004 50.096911 \n",
       "L 490.480494 255.512128 \n",
       "L 515.760788 188.18821 \n",
       "L 541.318888 110.553412 \n",
       "L 566.876989 34.918125 \n",
       "\" clip-path=\"url(#pdb1cbae519)\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_7\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 34.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_8\">\n",
       "    <path d=\"M 592.240625 299.518125 \n",
       "L 592.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_9\">\n",
       "    <path d=\"M 34.240625 299.518125 \n",
       "L 592.240625 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_10\">\n",
       "    <path d=\"M 34.240625 22.318125 \n",
       "L 592.240625 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"legend_1\">\n",
       "    <g id=\"patch_11\">\n",
       "     <path d=\"M 41.240625 59.674375 \n",
       "L 126.278125 59.674375 \n",
       "Q 128.278125 59.674375 128.278125 57.674375 \n",
       "L 128.278125 29.318125 \n",
       "Q 128.278125 27.318125 126.278125 27.318125 \n",
       "L 41.240625 27.318125 \n",
       "Q 39.240625 27.318125 39.240625 29.318125 \n",
       "L 39.240625 57.674375 \n",
       "Q 39.240625 59.674375 41.240625 59.674375 \n",
       "z\n",
       "\" style=\"fill: #ffffff; opacity: 0.8; stroke: #cccccc; stroke-linejoin: miter\"/>\n",
       "    </g>\n",
       "    <g id=\"line2d_20\">\n",
       "     <path d=\"M 43.240625 35.416562 \n",
       "L 53.240625 35.416562 \n",
       "L 63.240625 35.416562 \n",
       "\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_24\">\n",
       "     <!-- onlinedata -->\n",
       "     <g transform=\"translate(71.240625 38.916562)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-6f\" d=\"M 1959 3097 \n",
       "Q 1497 3097 1228 2736 \n",
       "Q 959 2375 959 1747 \n",
       "Q 959 1119 1226 758 \n",
       "Q 1494 397 1959 397 \n",
       "Q 2419 397 2687 759 \n",
       "Q 2956 1122 2956 1747 \n",
       "Q 2956 2369 2687 2733 \n",
       "Q 2419 3097 1959 3097 \n",
       "z\n",
       "M 1959 3584 \n",
       "Q 2709 3584 3137 3096 \n",
       "Q 3566 2609 3566 1747 \n",
       "Q 3566 888 3137 398 \n",
       "Q 2709 -91 1959 -91 \n",
       "Q 1206 -91 779 398 \n",
       "Q 353 888 353 1747 \n",
       "Q 353 2609 779 3096 \n",
       "Q 1206 3584 1959 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6c\" d=\"M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-64\" d=\"M 2906 2969 \n",
       "L 2906 4863 \n",
       "L 3481 4863 \n",
       "L 3481 0 \n",
       "L 2906 0 \n",
       "L 2906 525 \n",
       "Q 2725 213 2448 61 \n",
       "Q 2172 -91 1784 -91 \n",
       "Q 1150 -91 751 415 \n",
       "Q 353 922 353 1747 \n",
       "Q 353 2572 751 3078 \n",
       "Q 1150 3584 1784 3584 \n",
       "Q 2172 3584 2448 3432 \n",
       "Q 2725 3281 2906 2969 \n",
       "z\n",
       "M 947 1747 \n",
       "Q 947 1113 1208 752 \n",
       "Q 1469 391 1925 391 \n",
       "Q 2381 391 2643 752 \n",
       "Q 2906 1113 2906 1747 \n",
       "Q 2906 2381 2643 2742 \n",
       "Q 2381 3103 1925 3103 \n",
       "Q 1469 3103 1208 2742 \n",
       "Q 947 2381 947 1747 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-6f\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"61.181641\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6c\" x=\"124.560547\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"152.34375\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"180.126953\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"243.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.029297\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.785156\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"468.994141\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_21\">\n",
       "     <path d=\"M 43.240625 50.094688 \n",
       "L 53.240625 50.094688 \n",
       "L 63.240625 50.094688 \n",
       "\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_25\">\n",
       "     <!-- csmardata -->\n",
       "     <g transform=\"translate(71.240625 53.594688)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.134766\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.611328\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.890625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"469.099609\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       " </g>\n",
       " <defs>\n",
       "  <clipPath id=\"pdb1cbae519\">\n",
       "   <rect x=\"34.240625\" y=\"22.318125\" width=\"558\" height=\"277.2\"/>\n",
       "  </clipPath>\n",
       " </defs>\n",
       "</svg>\n"
      ],
      "text/plain": [
       "<Figure size 1000x500 with 2 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig = plt.figure(figsize=(10, 5))\n",
    "ax1 = fig.add_subplot(1, 1, 1)  #(x, x, x)这里前两个表示几*几的网格，最后一个表示第几子图\n",
    "ax1.plot(Qdata2['桃李面包（603866.SH)'],color='red',label='onlinedata')\n",
    "ax1.set_xlabel('time')  # 设置横坐标标签\n",
    "ax1.set_ylabel('revenue')  # 设置左边纵坐标标签\n",
    "ax1.set_title(\"revenue\")  # 给整张图命名\n",
    "data_format = mdates.DateFormatter('%Y')\n",
    "ax1.xaxis.set_major_formatter(data_format)\n",
    "ax1.xaxis.set_major_locator(mdates.YearLocator())\n",
    "plt.xticks(rotation = 90)\n",
    "ax2 = ax1.twinx()  #twinx()函数表示共享x轴\n",
    "ax2.plot(finaldata['桃李面包'],color='blue',label='csmardata')\n",
    "ax2.set_ylabel('csmar')  # 设置右边纵坐标标签\n",
    "lines, labels = ax1.get_legend_handles_labels()\n",
    "lines2, labels2 = ax2.get_legend_handles_labels()\n",
    "ax2.legend(lines + lines2, labels + labels2, loc='upper left')\n",
    "fig = plt.gcf()\n",
    "fig.savefig('桃李面包.pdf', bbox_inches='tight')\n",
    "plt.show();"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
       "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"645.5625pt\" height=\"352.84625pt\" viewBox=\"0 0 645.5625 352.84625\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">\n",
       " <metadata>\n",
       "  <rdf:RDF xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n",
       "   <cc:Work>\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\n",
       "    <dc:date>2024-12-19T16:30:47.769032</dc:date>\n",
       "    <dc:format>image/svg+xml</dc:format>\n",
       "    <dc:creator>\n",
       "     <cc:Agent>\n",
       "      <dc:title>Matplotlib v3.5.2, https://matplotlib.org/</dc:title>\n",
       "     </cc:Agent>\n",
       "    </dc:creator>\n",
       "   </cc:Work>\n",
       "  </rdf:RDF>\n",
       " </metadata>\n",
       " <defs>\n",
       "  <style type=\"text/css\">*{stroke-linejoin: round; stroke-linecap: butt}</style>\n",
       " </defs>\n",
       " <g id=\"figure_1\">\n",
       "  <g id=\"patch_1\">\n",
       "   <path d=\"M 0 352.84625 \n",
       "L 645.5625 352.84625 \n",
       "L 645.5625 0 \n",
       "L 0 0 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "  </g>\n",
       "  <g id=\"axes_1\">\n",
       "   <g id=\"patch_2\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 601.78125 299.518125 \n",
       "L 601.78125 22.318125 \n",
       "L 43.78125 22.318125 \n",
       "z\n",
       "\" style=\"fill: #ffffff\"/>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_1\">\n",
       "    <g id=\"xtick_1\">\n",
       "     <g id=\"line2d_1\">\n",
       "      <defs>\n",
       "       <path id=\"m849765ce29\" d=\"M 0 0 \n",
       "L 0 3.5 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m849765ce29\" x=\"149.794237\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_1\">\n",
       "      <!-- 2017 -->\n",
       "      <g transform=\"translate(152.553612 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-32\" d=\"M 1228 531 \n",
       "L 3431 531 \n",
       "L 3431 0 \n",
       "L 469 0 \n",
       "L 469 531 \n",
       "Q 828 903 1448 1529 \n",
       "Q 2069 2156 2228 2338 \n",
       "Q 2531 2678 2651 2914 \n",
       "Q 2772 3150 2772 3378 \n",
       "Q 2772 3750 2511 3984 \n",
       "Q 2250 4219 1831 4219 \n",
       "Q 1534 4219 1204 4116 \n",
       "Q 875 4013 500 3803 \n",
       "L 500 4441 \n",
       "Q 881 4594 1212 4672 \n",
       "Q 1544 4750 1819 4750 \n",
       "Q 2544 4750 2975 4387 \n",
       "Q 3406 4025 3406 3419 \n",
       "Q 3406 3131 3298 2873 \n",
       "Q 3191 2616 2906 2266 \n",
       "Q 2828 2175 2409 1742 \n",
       "Q 1991 1309 1228 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-30\" d=\"M 2034 4250 \n",
       "Q 1547 4250 1301 3770 \n",
       "Q 1056 3291 1056 2328 \n",
       "Q 1056 1369 1301 889 \n",
       "Q 1547 409 2034 409 \n",
       "Q 2525 409 2770 889 \n",
       "Q 3016 1369 3016 2328 \n",
       "Q 3016 3291 2770 3770 \n",
       "Q 2525 4250 2034 4250 \n",
       "z\n",
       "M 2034 4750 \n",
       "Q 2819 4750 3233 4129 \n",
       "Q 3647 3509 3647 2328 \n",
       "Q 3647 1150 3233 529 \n",
       "Q 2819 -91 2034 -91 \n",
       "Q 1250 -91 836 529 \n",
       "Q 422 1150 422 2328 \n",
       "Q 422 3509 836 4129 \n",
       "Q 1250 4750 2034 4750 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-31\" d=\"M 794 531 \n",
       "L 1825 531 \n",
       "L 1825 4091 \n",
       "L 703 3866 \n",
       "L 703 4441 \n",
       "L 1819 4666 \n",
       "L 2450 4666 \n",
       "L 2450 531 \n",
       "L 3481 531 \n",
       "L 3481 0 \n",
       "L 794 0 \n",
       "L 794 531 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-37\" d=\"M 525 4666 \n",
       "L 3525 4666 \n",
       "L 3525 4397 \n",
       "L 1831 0 \n",
       "L 1172 0 \n",
       "L 2766 4134 \n",
       "L 525 4134 \n",
       "L 525 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-37\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_2\">\n",
       "     <g id=\"line2d_2\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m849765ce29\" x=\"256.450081\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_2\">\n",
       "      <!-- 2018 -->\n",
       "      <g transform=\"translate(259.209456 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-38\" d=\"M 2034 2216 \n",
       "Q 1584 2216 1326 1975 \n",
       "Q 1069 1734 1069 1313 \n",
       "Q 1069 891 1326 650 \n",
       "Q 1584 409 2034 409 \n",
       "Q 2484 409 2743 651 \n",
       "Q 3003 894 3003 1313 \n",
       "Q 3003 1734 2745 1975 \n",
       "Q 2488 2216 2034 2216 \n",
       "z\n",
       "M 1403 2484 \n",
       "Q 997 2584 770 2862 \n",
       "Q 544 3141 544 3541 \n",
       "Q 544 4100 942 4425 \n",
       "Q 1341 4750 2034 4750 \n",
       "Q 2731 4750 3128 4425 \n",
       "Q 3525 4100 3525 3541 \n",
       "Q 3525 3141 3298 2862 \n",
       "Q 3072 2584 2669 2484 \n",
       "Q 3125 2378 3379 2068 \n",
       "Q 3634 1759 3634 1313 \n",
       "Q 3634 634 3220 271 \n",
       "Q 2806 -91 2034 -91 \n",
       "Q 1263 -91 848 271 \n",
       "Q 434 634 434 1313 \n",
       "Q 434 1759 690 2068 \n",
       "Q 947 2378 1403 2484 \n",
       "z\n",
       "M 1172 3481 \n",
       "Q 1172 3119 1398 2916 \n",
       "Q 1625 2713 2034 2713 \n",
       "Q 2441 2713 2670 2916 \n",
       "Q 2900 3119 2900 3481 \n",
       "Q 2900 3844 2670 4047 \n",
       "Q 2441 4250 2034 4250 \n",
       "Q 1625 4250 1398 4047 \n",
       "Q 1172 3844 1172 3481 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-38\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_3\">\n",
       "     <g id=\"line2d_3\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m849765ce29\" x=\"363.105925\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_3\">\n",
       "      <!-- 2019 -->\n",
       "      <g transform=\"translate(365.8653 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-39\" d=\"M 703 97 \n",
       "L 703 672 \n",
       "Q 941 559 1184 500 \n",
       "Q 1428 441 1663 441 \n",
       "Q 2288 441 2617 861 \n",
       "Q 2947 1281 2994 2138 \n",
       "Q 2813 1869 2534 1725 \n",
       "Q 2256 1581 1919 1581 \n",
       "Q 1219 1581 811 2004 \n",
       "Q 403 2428 403 3163 \n",
       "Q 403 3881 828 4315 \n",
       "Q 1253 4750 1959 4750 \n",
       "Q 2769 4750 3195 4129 \n",
       "Q 3622 3509 3622 2328 \n",
       "Q 3622 1225 3098 567 \n",
       "Q 2575 -91 1691 -91 \n",
       "Q 1453 -91 1209 -44 \n",
       "Q 966 3 703 97 \n",
       "z\n",
       "M 1959 2075 \n",
       "Q 2384 2075 2632 2365 \n",
       "Q 2881 2656 2881 3163 \n",
       "Q 2881 3666 2632 3958 \n",
       "Q 2384 4250 1959 4250 \n",
       "Q 1534 4250 1286 3958 \n",
       "Q 1038 3666 1038 3163 \n",
       "Q 1038 2656 1286 2365 \n",
       "Q 1534 2075 1959 2075 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-39\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_4\">\n",
       "     <g id=\"line2d_4\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m849765ce29\" x=\"469.761769\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_4\">\n",
       "      <!-- 2020 -->\n",
       "      <g transform=\"translate(472.521144 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_5\">\n",
       "     <g id=\"line2d_5\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m849765ce29\" x=\"576.709821\" y=\"299.518125\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_5\">\n",
       "      <!-- 2021 -->\n",
       "      <g transform=\"translate(579.469196 331.968125)rotate(-90)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"127.246094\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-31\" x=\"190.869141\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_6\">\n",
       "     <!-- time -->\n",
       "     <g transform=\"translate(311.485156 343.566563)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-74\" d=\"M 1172 4494 \n",
       "L 1172 3500 \n",
       "L 2356 3500 \n",
       "L 2356 3053 \n",
       "L 1172 3053 \n",
       "L 1172 1153 \n",
       "Q 1172 725 1289 603 \n",
       "Q 1406 481 1766 481 \n",
       "L 2356 481 \n",
       "L 2356 0 \n",
       "L 1766 0 \n",
       "Q 1100 0 847 248 \n",
       "Q 594 497 594 1153 \n",
       "L 594 3053 \n",
       "L 172 3053 \n",
       "L 172 3500 \n",
       "L 594 3500 \n",
       "L 594 4494 \n",
       "L 1172 4494 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-69\" d=\"M 603 3500 \n",
       "L 1178 3500 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 3500 \n",
       "z\n",
       "M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 4134 \n",
       "L 603 4134 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6d\" d=\"M 3328 2828 \n",
       "Q 3544 3216 3844 3400 \n",
       "Q 4144 3584 4550 3584 \n",
       "Q 5097 3584 5394 3201 \n",
       "Q 5691 2819 5691 2113 \n",
       "L 5691 0 \n",
       "L 5113 0 \n",
       "L 5113 2094 \n",
       "Q 5113 2597 4934 2840 \n",
       "Q 4756 3084 4391 3084 \n",
       "Q 3944 3084 3684 2787 \n",
       "Q 3425 2491 3425 1978 \n",
       "L 3425 0 \n",
       "L 2847 0 \n",
       "L 2847 2094 \n",
       "Q 2847 2600 2669 2842 \n",
       "Q 2491 3084 2119 3084 \n",
       "Q 1678 3084 1418 2786 \n",
       "Q 1159 2488 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1356 3278 1631 3431 \n",
       "Q 1906 3584 2284 3584 \n",
       "Q 2666 3584 2933 3390 \n",
       "Q 3200 3197 3328 2828 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-65\" d=\"M 3597 1894 \n",
       "L 3597 1613 \n",
       "L 953 1613 \n",
       "Q 991 1019 1311 708 \n",
       "Q 1631 397 2203 397 \n",
       "Q 2534 397 2845 478 \n",
       "Q 3156 559 3463 722 \n",
       "L 3463 178 \n",
       "Q 3153 47 2828 -22 \n",
       "Q 2503 -91 2169 -91 \n",
       "Q 1331 -91 842 396 \n",
       "Q 353 884 353 1716 \n",
       "Q 353 2575 817 3079 \n",
       "Q 1281 3584 2069 3584 \n",
       "Q 2775 3584 3186 3129 \n",
       "Q 3597 2675 3597 1894 \n",
       "z\n",
       "M 3022 2063 \n",
       "Q 3016 2534 2758 2815 \n",
       "Q 2500 3097 2075 3097 \n",
       "Q 1594 3097 1305 2825 \n",
       "Q 1016 2553 972 2059 \n",
       "L 3022 2063 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-74\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"39.208984\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"66.992188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"164.404297\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_2\">\n",
       "    <g id=\"ytick_1\">\n",
       "     <g id=\"line2d_6\">\n",
       "      <defs>\n",
       "       <path id=\"m41fcb90c9a\" d=\"M 0 0 \n",
       "L -3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m41fcb90c9a\" x=\"43.78125\" y=\"285.63903\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_7\">\n",
       "      <!-- 0.5 -->\n",
       "      <g transform=\"translate(20.878125 289.438248)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-2e\" d=\"M 684 794 \n",
       "L 1344 794 \n",
       "L 1344 0 \n",
       "L 684 0 \n",
       "L 684 794 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "        <path id=\"DejaVuSans-35\" d=\"M 691 4666 \n",
       "L 3169 4666 \n",
       "L 3169 4134 \n",
       "L 1269 4134 \n",
       "L 1269 2991 \n",
       "Q 1406 3038 1543 3061 \n",
       "Q 1681 3084 1819 3084 \n",
       "Q 2600 3084 3056 2656 \n",
       "Q 3513 2228 3513 1497 \n",
       "Q 3513 744 3044 326 \n",
       "Q 2575 -91 1722 -91 \n",
       "Q 1428 -91 1123 -41 \n",
       "Q 819 9 494 109 \n",
       "L 494 744 \n",
       "Q 775 591 1075 516 \n",
       "Q 1375 441 1709 441 \n",
       "Q 2250 441 2565 725 \n",
       "Q 2881 1009 2881 1497 \n",
       "Q 2881 1984 2565 2268 \n",
       "Q 2250 2553 1709 2553 \n",
       "Q 1456 2553 1204 2497 \n",
       "Q 953 2441 691 2322 \n",
       "L 691 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_7\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m41fcb90c9a\" x=\"43.78125\" y=\"232.796967\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_8\">\n",
       "      <!-- 1.0 -->\n",
       "      <g transform=\"translate(20.878125 236.596186)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_8\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m41fcb90c9a\" x=\"43.78125\" y=\"179.954905\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_9\">\n",
       "      <!-- 1.5 -->\n",
       "      <g transform=\"translate(20.878125 183.754124)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_9\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m41fcb90c9a\" x=\"43.78125\" y=\"127.112843\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_10\">\n",
       "      <!-- 2.0 -->\n",
       "      <g transform=\"translate(20.878125 130.912061)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_5\">\n",
       "     <g id=\"line2d_10\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m41fcb90c9a\" x=\"43.78125\" y=\"74.27078\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_11\">\n",
       "      <!-- 2.5 -->\n",
       "      <g transform=\"translate(20.878125 78.069999)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-35\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_12\">\n",
       "     <!-- revenue -->\n",
       "     <g transform=\"translate(14.798438 181.387656)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-72\" d=\"M 2631 2963 \n",
       "Q 2534 3019 2420 3045 \n",
       "Q 2306 3072 2169 3072 \n",
       "Q 1681 3072 1420 2755 \n",
       "Q 1159 2438 1159 1844 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1341 3275 1631 3429 \n",
       "Q 1922 3584 2338 3584 \n",
       "Q 2397 3584 2469 3576 \n",
       "Q 2541 3569 2628 3553 \n",
       "L 2631 2963 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-76\" d=\"M 191 3500 \n",
       "L 800 3500 \n",
       "L 1894 563 \n",
       "L 2988 3500 \n",
       "L 3597 3500 \n",
       "L 2284 0 \n",
       "L 1503 0 \n",
       "L 191 3500 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6e\" d=\"M 3513 2113 \n",
       "L 3513 0 \n",
       "L 2938 0 \n",
       "L 2938 2094 \n",
       "Q 2938 2591 2744 2837 \n",
       "Q 2550 3084 2163 3084 \n",
       "Q 1697 3084 1428 2787 \n",
       "Q 1159 2491 1159 1978 \n",
       "L 1159 0 \n",
       "L 581 0 \n",
       "L 581 3500 \n",
       "L 1159 3500 \n",
       "L 1159 2956 \n",
       "Q 1366 3272 1645 3428 \n",
       "Q 1925 3584 2291 3584 \n",
       "Q 2894 3584 3203 3211 \n",
       "Q 3513 2838 3513 2113 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-75\" d=\"M 544 1381 \n",
       "L 544 3500 \n",
       "L 1119 3500 \n",
       "L 1119 1403 \n",
       "Q 1119 906 1312 657 \n",
       "Q 1506 409 1894 409 \n",
       "Q 2359 409 2629 706 \n",
       "Q 2900 1003 2900 1516 \n",
       "L 2900 3500 \n",
       "L 3475 3500 \n",
       "L 3475 0 \n",
       "L 2900 0 \n",
       "L 2900 538 \n",
       "Q 2691 219 2414 64 \n",
       "Q 2138 -91 1772 -91 \n",
       "Q 1169 -91 856 284 \n",
       "Q 544 659 544 1381 \n",
       "z\n",
       "M 1991 3584 \n",
       "L 1991 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_13\">\n",
       "     <!-- 1e7 -->\n",
       "     <g transform=\"translate(43.78125 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-37\" x=\"125.146484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_11\">\n",
       "    <path d=\"M 69.144886 257.261692 \n",
       "L 95.735795 270.185534 \n",
       "L 122.618912 286.918125 \n",
       "L 149.502029 244.135586 \n",
       "L 175.800731 220.728907 \n",
       "L 202.39164 218.329673 \n",
       "L 229.274756 232.569721 \n",
       "L 256.157873 168.99135 \n",
       "L 282.456575 170.368624 \n",
       "L 309.047484 183.062666 \n",
       "L 335.930601 182.371013 \n",
       "L 362.813718 108.806735 \n",
       "L 389.112419 131.638057 \n",
       "L 415.703328 153.446668 \n",
       "L 442.586445 178.778156 \n",
       "L 469.469562 102.414274 \n",
       "L 496.060471 93.102787 \n",
       "L 522.65138 34.918125 \n",
       "L 549.534497 266.954195 \n",
       "\" clip-path=\"url(#pa04e286517)\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 43.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 601.78125 299.518125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_5\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 601.78125 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_6\">\n",
       "    <path d=\"M 43.78125 22.318125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_14\">\n",
       "    <!-- revenue -->\n",
       "    <g transform=\"translate(298.217812 16.318125)scale(0.12 -0.12)\">\n",
       "     <use xlink:href=\"#DejaVuSans-72\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"38.863281\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-76\" x=\"100.386719\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"159.566406\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-6e\" x=\"221.089844\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-75\" x=\"284.46875\"/>\n",
       "     <use xlink:href=\"#DejaVuSans-65\" x=\"347.847656\"/>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       "  <g id=\"axes_2\">\n",
       "   <g id=\"matplotlib.axis_3\">\n",
       "    <g id=\"ytick_6\">\n",
       "     <g id=\"line2d_12\">\n",
       "      <defs>\n",
       "       <path id=\"m9fe649a5a6\" d=\"M 0 0 \n",
       "L 3.5 0 \n",
       "\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </defs>\n",
       "      <g>\n",
       "       <use xlink:href=\"#m9fe649a5a6\" x=\"601.78125\" y=\"283.77387\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_15\">\n",
       "      <!-- 0.2 -->\n",
       "      <g transform=\"translate(608.78125 287.573089)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-32\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_7\">\n",
       "     <g id=\"line2d_13\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m9fe649a5a6\" x=\"601.78125\" y=\"223.407123\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_16\">\n",
       "      <!-- 0.4 -->\n",
       "      <g transform=\"translate(608.78125 227.206342)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-34\" d=\"M 2419 4116 \n",
       "L 825 1625 \n",
       "L 2419 1625 \n",
       "L 2419 4116 \n",
       "z\n",
       "M 2253 4666 \n",
       "L 3047 4666 \n",
       "L 3047 1625 \n",
       "L 3713 1625 \n",
       "L 3713 1100 \n",
       "L 3047 1100 \n",
       "L 3047 0 \n",
       "L 2419 0 \n",
       "L 2419 1100 \n",
       "L 313 1100 \n",
       "L 313 1709 \n",
       "L 2253 4666 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-34\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_8\">\n",
       "     <g id=\"line2d_14\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m9fe649a5a6\" x=\"601.78125\" y=\"163.040376\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_17\">\n",
       "      <!-- 0.6 -->\n",
       "      <g transform=\"translate(608.78125 166.839595)scale(0.1 -0.1)\">\n",
       "       <defs>\n",
       "        <path id=\"DejaVuSans-36\" d=\"M 2113 2584 \n",
       "Q 1688 2584 1439 2293 \n",
       "Q 1191 2003 1191 1497 \n",
       "Q 1191 994 1439 701 \n",
       "Q 1688 409 2113 409 \n",
       "Q 2538 409 2786 701 \n",
       "Q 3034 994 3034 1497 \n",
       "Q 3034 2003 2786 2293 \n",
       "Q 2538 2584 2113 2584 \n",
       "z\n",
       "M 3366 4563 \n",
       "L 3366 3988 \n",
       "Q 3128 4100 2886 4159 \n",
       "Q 2644 4219 2406 4219 \n",
       "Q 1781 4219 1451 3797 \n",
       "Q 1122 3375 1075 2522 \n",
       "Q 1259 2794 1537 2939 \n",
       "Q 1816 3084 2150 3084 \n",
       "Q 2853 3084 3261 2657 \n",
       "Q 3669 2231 3669 1497 \n",
       "Q 3669 778 3244 343 \n",
       "Q 2819 -91 2113 -91 \n",
       "Q 1303 -91 875 529 \n",
       "Q 447 1150 447 2328 \n",
       "Q 447 3434 972 4092 \n",
       "Q 1497 4750 2381 4750 \n",
       "Q 2619 4750 2861 4703 \n",
       "Q 3103 4656 3366 4563 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       </defs>\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-36\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_9\">\n",
       "     <g id=\"line2d_15\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m9fe649a5a6\" x=\"601.78125\" y=\"102.673629\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_18\">\n",
       "      <!-- 0.8 -->\n",
       "      <g transform=\"translate(608.78125 106.472848)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-38\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_10\">\n",
       "     <g id=\"line2d_16\">\n",
       "      <g>\n",
       "       <use xlink:href=\"#m9fe649a5a6\" x=\"601.78125\" y=\"42.306882\" style=\"stroke: #000000; stroke-width: 0.8\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "     <g id=\"text_19\">\n",
       "      <!-- 1.0 -->\n",
       "      <g transform=\"translate(608.78125 46.1061)scale(0.1 -0.1)\">\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-2e\" x=\"63.623047\"/>\n",
       "       <use xlink:href=\"#DejaVuSans-30\" x=\"95.410156\"/>\n",
       "      </g>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_20\">\n",
       "     <!-- csmar -->\n",
       "     <g transform=\"translate(636.282813 176.261875)rotate(-90)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-63\" d=\"M 3122 3366 \n",
       "L 3122 2828 \n",
       "Q 2878 2963 2633 3030 \n",
       "Q 2388 3097 2138 3097 \n",
       "Q 1578 3097 1268 2742 \n",
       "Q 959 2388 959 1747 \n",
       "Q 959 1106 1268 751 \n",
       "Q 1578 397 2138 397 \n",
       "Q 2388 397 2633 464 \n",
       "Q 2878 531 3122 666 \n",
       "L 3122 134 \n",
       "Q 2881 22 2623 -34 \n",
       "Q 2366 -91 2075 -91 \n",
       "Q 1284 -91 818 406 \n",
       "Q 353 903 353 1747 \n",
       "Q 353 2603 823 3093 \n",
       "Q 1294 3584 2113 3584 \n",
       "Q 2378 3584 2631 3529 \n",
       "Q 2884 3475 3122 3366 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-73\" d=\"M 2834 3397 \n",
       "L 2834 2853 \n",
       "Q 2591 2978 2328 3040 \n",
       "Q 2066 3103 1784 3103 \n",
       "Q 1356 3103 1142 2972 \n",
       "Q 928 2841 928 2578 \n",
       "Q 928 2378 1081 2264 \n",
       "Q 1234 2150 1697 2047 \n",
       "L 1894 2003 \n",
       "Q 2506 1872 2764 1633 \n",
       "Q 3022 1394 3022 966 \n",
       "Q 3022 478 2636 193 \n",
       "Q 2250 -91 1575 -91 \n",
       "Q 1294 -91 989 -36 \n",
       "Q 684 19 347 128 \n",
       "L 347 722 \n",
       "Q 666 556 975 473 \n",
       "Q 1284 391 1588 391 \n",
       "Q 1994 391 2212 530 \n",
       "Q 2431 669 2431 922 \n",
       "Q 2431 1156 2273 1281 \n",
       "Q 2116 1406 1581 1522 \n",
       "L 1381 1569 \n",
       "Q 847 1681 609 1914 \n",
       "Q 372 2147 372 2553 \n",
       "Q 372 3047 722 3315 \n",
       "Q 1072 3584 1716 3584 \n",
       "Q 2034 3584 2315 3537 \n",
       "Q 2597 3491 2834 3397 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-61\" d=\"M 2194 1759 \n",
       "Q 1497 1759 1228 1600 \n",
       "Q 959 1441 959 1056 \n",
       "Q 959 750 1161 570 \n",
       "Q 1363 391 1709 391 \n",
       "Q 2188 391 2477 730 \n",
       "Q 2766 1069 2766 1631 \n",
       "L 2766 1759 \n",
       "L 2194 1759 \n",
       "z\n",
       "M 3341 1997 \n",
       "L 3341 0 \n",
       "L 2766 0 \n",
       "L 2766 531 \n",
       "Q 2569 213 2275 61 \n",
       "Q 1981 -91 1556 -91 \n",
       "Q 1019 -91 701 211 \n",
       "Q 384 513 384 1019 \n",
       "Q 384 1609 779 1909 \n",
       "Q 1175 2209 1959 2209 \n",
       "L 2766 2209 \n",
       "L 2766 2266 \n",
       "Q 2766 2663 2505 2880 \n",
       "Q 2244 3097 1772 3097 \n",
       "Q 1472 3097 1187 3025 \n",
       "Q 903 2953 641 2809 \n",
       "L 641 3341 \n",
       "Q 956 3463 1253 3523 \n",
       "Q 1550 3584 1831 3584 \n",
       "Q 2591 3584 2966 3190 \n",
       "Q 3341 2797 3341 1997 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_21\">\n",
       "     <!-- 1e9 -->\n",
       "     <g transform=\"translate(582.903125 19.318125)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-31\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"63.623047\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-39\" x=\"125.146484\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_17\">\n",
       "    <path d=\"M 363.105925 87.324425 \n",
       "M 415.703328 209.810258 \n",
       "L 442.586445 136.656864 \n",
       "L 469.469562 50.523351 \n",
       "L 469.761769 50.523351 \n",
       "L 496.060471 286.918125 \n",
       "L 522.65138 212.597593 \n",
       "L 549.534497 128.542679 \n",
       "L 576.417614 34.918125 \n",
       "\" clip-path=\"url(#pa04e286517)\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_7\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 43.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_8\">\n",
       "    <path d=\"M 601.78125 299.518125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_9\">\n",
       "    <path d=\"M 43.78125 299.518125 \n",
       "L 601.78125 299.518125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_10\">\n",
       "    <path d=\"M 43.78125 22.318125 \n",
       "L 601.78125 22.318125 \n",
       "\" style=\"fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"legend_1\">\n",
       "    <g id=\"patch_11\">\n",
       "     <path d=\"M 50.78125 59.674375 \n",
       "L 135.81875 59.674375 \n",
       "Q 137.81875 59.674375 137.81875 57.674375 \n",
       "L 137.81875 29.318125 \n",
       "Q 137.81875 27.318125 135.81875 27.318125 \n",
       "L 50.78125 27.318125 \n",
       "Q 48.78125 27.318125 48.78125 29.318125 \n",
       "L 48.78125 57.674375 \n",
       "Q 48.78125 59.674375 50.78125 59.674375 \n",
       "z\n",
       "\" style=\"fill: #ffffff; opacity: 0.8; stroke: #cccccc; stroke-linejoin: miter\"/>\n",
       "    </g>\n",
       "    <g id=\"line2d_18\">\n",
       "     <path d=\"M 52.78125 35.416562 \n",
       "L 62.78125 35.416562 \n",
       "L 72.78125 35.416562 \n",
       "\" style=\"fill: none; stroke: #ff0000; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_22\">\n",
       "     <!-- onlinedata -->\n",
       "     <g transform=\"translate(80.78125 38.916562)scale(0.1 -0.1)\">\n",
       "      <defs>\n",
       "       <path id=\"DejaVuSans-6f\" d=\"M 1959 3097 \n",
       "Q 1497 3097 1228 2736 \n",
       "Q 959 2375 959 1747 \n",
       "Q 959 1119 1226 758 \n",
       "Q 1494 397 1959 397 \n",
       "Q 2419 397 2687 759 \n",
       "Q 2956 1122 2956 1747 \n",
       "Q 2956 2369 2687 2733 \n",
       "Q 2419 3097 1959 3097 \n",
       "z\n",
       "M 1959 3584 \n",
       "Q 2709 3584 3137 3096 \n",
       "Q 3566 2609 3566 1747 \n",
       "Q 3566 888 3137 398 \n",
       "Q 2709 -91 1959 -91 \n",
       "Q 1206 -91 779 398 \n",
       "Q 353 888 353 1747 \n",
       "Q 353 2609 779 3096 \n",
       "Q 1206 3584 1959 3584 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-6c\" d=\"M 603 4863 \n",
       "L 1178 4863 \n",
       "L 1178 0 \n",
       "L 603 0 \n",
       "L 603 4863 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "       <path id=\"DejaVuSans-64\" d=\"M 2906 2969 \n",
       "L 2906 4863 \n",
       "L 3481 4863 \n",
       "L 3481 0 \n",
       "L 2906 0 \n",
       "L 2906 525 \n",
       "Q 2725 213 2448 61 \n",
       "Q 2172 -91 1784 -91 \n",
       "Q 1150 -91 751 415 \n",
       "Q 353 922 353 1747 \n",
       "Q 353 2572 751 3078 \n",
       "Q 1150 3584 1784 3584 \n",
       "Q 2172 3584 2448 3432 \n",
       "Q 2725 3281 2906 2969 \n",
       "z\n",
       "M 947 1747 \n",
       "Q 947 1113 1208 752 \n",
       "Q 1469 391 1925 391 \n",
       "Q 2381 391 2643 752 \n",
       "Q 2906 1113 2906 1747 \n",
       "Q 2906 2381 2643 2742 \n",
       "Q 2381 3103 1925 3103 \n",
       "Q 1469 3103 1208 2742 \n",
       "Q 947 2381 947 1747 \n",
       "z\n",
       "\" transform=\"scale(0.015625)\"/>\n",
       "      </defs>\n",
       "      <use xlink:href=\"#DejaVuSans-6f\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"61.181641\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6c\" x=\"124.560547\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-69\" x=\"152.34375\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6e\" x=\"180.126953\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-65\" x=\"243.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.029297\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.505859\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.785156\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"468.994141\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"line2d_19\">\n",
       "     <path d=\"M 52.78125 50.094688 \n",
       "L 62.78125 50.094688 \n",
       "L 72.78125 50.094688 \n",
       "\" style=\"fill: none; stroke: #0000ff; stroke-width: 1.5; stroke-linecap: square\"/>\n",
       "    </g>\n",
       "    <g id=\"text_23\">\n",
       "     <!-- csmardata -->\n",
       "     <g transform=\"translate(80.78125 53.594688)scale(0.1 -0.1)\">\n",
       "      <use xlink:href=\"#DejaVuSans-63\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-73\" x=\"54.980469\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-6d\" x=\"107.080078\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"204.492188\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-72\" x=\"265.771484\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-64\" x=\"305.134766\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"368.611328\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-74\" x=\"429.890625\"/>\n",
       "      <use xlink:href=\"#DejaVuSans-61\" x=\"469.099609\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       " </g>\n",
       " <defs>\n",
       "  <clipPath id=\"pa04e286517\">\n",
       "   <rect x=\"43.78125\" y=\"22.318125\" width=\"558\" height=\"277.2\"/>\n",
       "  </clipPath>\n",
       " </defs>\n",
       "</svg>\n"
      ],
      "text/plain": [
       "<Figure size 1000x500 with 2 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig = plt.figure(figsize=(10, 5))\n",
    "ax1 = fig.add_subplot(1, 1, 1)  #(x, x, x)这里前两个表示几*几的网格，最后一个表示第几子图\n",
    "ax1.plot(Qdata2['西麦食品（002956.SZ）'],color='red',label='onlinedata')\n",
    "ax1.set_xlabel('time')  # 设置横坐标标签\n",
    "ax1.set_ylabel('revenue')  # 设置左边纵坐标标签\n",
    "ax1.set_title(\"revenue\")  # 给整张图命名\n",
    "data_format = mdates.DateFormatter('%Y')\n",
    "ax1.xaxis.set_major_formatter(data_format)\n",
    "ax1.xaxis.set_major_locator(mdates.YearLocator())\n",
    "plt.xticks(rotation = 90)\n",
    "ax2 = ax1.twinx()  #twinx()函数表示共享x轴\n",
    "ax2.plot(finaldata['西麦食品'],color='blue',label='csmardata')\n",
    "ax2.set_ylabel('csmar')  # 设置右边纵坐标标签\n",
    "lines, labels = ax1.get_legend_handles_labels()\n",
    "lines2, labels2 = ax2.get_legend_handles_labels()\n",
    "ax2.legend(lines + lines2, labels + labels2, loc='upper left')\n",
    "fig = plt.gcf()\n",
    "fig.savefig('西麦食品.pdf', bbox_inches='tight')\n",
    "plt.show();"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "base",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.13"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
